|
|
Choosing A Webhost: |
Re: Lookup columns: msg#00085db.firebird.dotnetprovider
Hi First the CityTable records are loaded and then the Employee. I could do this with SQL but that means I would load the same data 2 times and I'm trying to lower the network usage as the lines that we are using are slow.well, you can do it by hand, it's pretty fast employeeTable.BeginLoadData(); foreach (TypedDataSet.EmployeeRow employee in employeeTable.Rows) { employee.CityName = employee.CityRow.Name; } employee.EndLoadData(); you can speed this up further by going throught the dataset designer and skip all the casting that are along. and if you're going to loads further records (if you batch loads instead of loading full tables), you can put a employeeTable.Select instead of Rows The other solution is to make many-to-many relation and put another table in-between that way you'll have the children relationships it require (although I am fairly sertain it should work with parent) the third is to use LinQ (it is on the microsoft lab page, still in beta, designed for C# 3.0, but it allow full blown relational queries) ThxHTH CUIN Kaczy
------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Lookup columns, Zoltan |
|---|---|
| Next by Date: | Re: Lookup columns, Zoltan |
| Previous by Thread: | Lookup columns, Zoltan |
| Next by Thread: | Re: Lookup columns, Zoltan |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |