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
Post a Comment