Test your technical skills online, appear in Virtual Interview and be ready for job!
Twitter Twitter LinkedIn YouTube Google
Be Interview ready ! | Search
Make friends on DotNetFunda.com and expand your network!
Winners

Win Prizes

Announcements
Like us on Facebook
Sponsor
Top Codes Author
Wed, 23-Apr-2014 Authors
Zondray
40
All Time Authors
Satyapriyanayak
11600
Jayakumars
8120
Niladri.biswas
6000

Latest members | More ...


(Statistics delayed by 5 minutes)

How to use Compiled Queries in Entity Framework

Goldytech
Posted by Goldytech under Others on 8/31/2009 3:29:33 AM | Views : 4035 | 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.

Comments / Responses
Select text & click toolbar to format. Formatting appears in viewmode only. HTML Tags are not allowed.
Bold Italic Underline Paragraph Title Code  Link 
 Wait ... Processing ..... please wait.