Search
Weekend Training
ASP.NET MVC, HTML 5 weekend training, click here
eBook free
Winners

Win Prizes

Social Presence
Twitter Twitter LinkedIn YouTube Google

Like us on Facebook
Advertisements
Top Codes Author
Sun, 25-Jan-2015 Authors
All Time Authors
Vishal@Neeraj
12960
Satyapriyanayak
12160
Jayakumars
8120

Latest members | More ...


(Statistics delayed by 5 minutes)
 Codes

How to use Compiled Queries in Entity Framework

Goldytech
Posted by Goldytech under Others on 8/31/2009 3:29:33 AM | Views : 4410 | Status : [Member]

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);


}


Share this to:

Bookmark It

Comments or Responses


Login to post response