Re: [ADVANCED-DOTNET] another linq question....

2008-02-15 Thread Frans Bouma
> example from ms web site > > public void Linq15() { > List customers = GetCustomerList(); > > var orders = > from c in customers, > o in c.Orders > where o.Total < 500.00M > select new {c.CustomerID, o.OrderID, o.Total}; > > ObjectDumper.Wri

Re: [ADVANCED-DOTNET] another linq question....

2008-02-15 Thread Nicholls, Mark
I've worked it outthe "," should be a "from". > -Original Message- > From: Discussion of advanced .NET topics. [mailto:ADVANCED- > [EMAIL PROTECTED] On Behalf Of Nicholls, Mark > Sent: 15 February 2008 15:03 > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: [ADVANCED-DOTNET] another

Re: [ADVANCED-DOTNET] another linq question....

2008-02-15 Thread Ryan Heath
How about this? var order = from c in customers from o in c.Orders where o.Total < 500.00M select new { c.CustomerID, o.OrderID, o.Total }; // Ryan On Fri, Feb 15, 2008 at 4:03 PM, Mark Nicholls <[EMAIL PROTECTED]> wrote: > example from ms web site > > public void Linq15() { >Lis