Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Extension metho... » LINQ   (RSS)

Improving ObjectQuery<T>.Include – Updated

Having spent some time using the sample from my previous post on ObjectQuery.Include, I’ve encountered a bug! It turns out that the code generates the wrong include string for context.Customers.Include(c => c.Order.SubInclude(o=>o.OrderDetail))
Posted by stuartle | 1 Comments
Filed under: ,

DataServiceQuery<T>.Expand

ADO.Net Data Services allows you to expose your LINQ To Entities model (or LINQ To SQL model, or even your custom IQueryable model) via a REST ful API with minimal coding. For example, if you’re working with the Northwind database you can use the URL

Improving ObjectQuery<T>.Include

** UPDATE: There’s a bug in the code below – see this post for the update! One of the great features of LINQ To SQL and LINQ To Entities is that the queries you write are checked by the compiler, which eliminates typing errors in your query. Unfortunately,
Posted by stuartle | 13 Comments
 
Page view tracker