c# - AsNoTracking using LINQ Query syntax instead of Method syntax -


i'm interested in using asnotracking linq select queries improve performance. i'm using entity framework 5 code first.

however, of queries written using linq query syntax , of asnotracking examples shown using method syntax. i'm aware asnotracking created method syntax how achieve same thing query syntax?

you apply asnotracking() dbset:

var result = (     person in ctx.people.asnotracking()     select person)     .tolist(); 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -