LINQ in Action roller

The Including() operator

Hello, How would I sub-query the child collection in an including clause to limit the number of child objects that come back. For example, when I do the following: from c in Customers select c).Including(c => (from o in c.Paychecks where (o.OrderDate >= startDate && o.OrderDate <= endDate) select o)); An exception is thrown that states "Including expression must refer to an immediate property". Is there a way to do the above? Read More...
Published Thursday, February 22, 2007 8:57 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication