Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select to a temporary cursor
Message
From
13/12/2008 19:28:02
 
 
To
05/12/2008 07:38:53
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01365559
Message ID:
01367232
Views:
9
>LOL, thanks for pointing that out. That comes from an example set from DLinQ. I guess I shouldn't post after a night of imbibing adult beverages...Here is the correct information from an article by Kevin Goff: http://www.devx.com/codemag/Article/35390/1954?pf=true:
>
>This code references the extension method AsEnumerable, from the System.Data.EntityClient namespace
>
>
>DataTable orders = ds.Tables["SalesOrderHeader"];
>
>varr query = from o in orders.AsEnumerable()
>                 where o.Field<bool>("OnlineOrderFlag") == true
>                 select new { SalesOrderID = o.Field<int>("SalesOrderID"), OrderDate = o.Field<DateTime>("OrderDate") };
>
>dtResults = query.ToADOTable( rec => new object[] {query});
>


OK, I finally found the extension method, but I had to add a reference to System.Data.DataSetExtensions ... it's not part of the .EntityClient namespace.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform