Search
Sponsor
Winners

Win Prizes

Social Presence
Twitter Twitter LinkedIn YouTube Google

Like us on Facebook
Advertisements
Top Codes Author
Wed, 01-Oct-2014 Authors
Zondray
40
All Time Authors
Satyapriyanayak
12160
Jayakumars
8120
Vishal@Neeraj
7160

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


}


Found interesting? Add this to:



Comments or Responses


Login to post response