sql server 2008 r2 - No orderby in LINQ query, but ORDER BY in SQL -
i have linqtoentities query not use orderby clause, on resulting sql query, there order clause (which costs 77% on query on execution plan).
does know why order clause added , how can remove (if possible) ?
here linqtoentities query :
var classementsquery = classement in _dbcontext.classements .include(c => c.operations) .include("operations.matrices") .include("operations.qualifications") .include("operations.qualifications.matrices") .include("operations.qualifications.qualificationetapes") .include("operations.qualifications.qualificationetapes.matrices") classement.operations.any() select classement;
nota : each of included entities relations n-n.
Comments
Post a Comment