Code Snippet posted by:
Goldytech | Posted on: 8/31/2009 | Category:
Others Codes | Views: 3343 | Status:
[Member]
|
Alert Moderator
This snippet shows you how to use compiled queries with Entity Framework.
public void CompiledEF()
{
var compileqry=CompiledQuery.Compile<OMSEntities, IQueryable<Customer>>(
ctx =>
from cust in ctx.Customers
where cust.ContactTitle == "Manager"
select cust);
}