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() { > 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.Write(orders); > } > > unfortunately my 2008 compiler doesn't seem to like it....it complains > about the ","....I suspect the syntax has changed...I suspect I need > a "join" somewhere, but then it expects some sort of "on" clause, which I > can't really supply as the o is correlated by the "." in "c.order". > > any help? > > =================================== > This list is hosted by DevelopMentor(R) http://www.develop.com > > View archives and manage your subscription(s) at http://discuss.develop.com > =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com