LINQ to SQL always converts values ββto query parameters in the output. For example:
someTable.Where(n => n.Field == 5);
gives:
WHERE Field = @p0
This causes problems in certain query optimization scenarios. Is there a way to force the values ββto be embedded in the generated SQL so that it becomes:
WHERE Field = 5
? Will LINQ to Entities provide a way or will it behave the same?
linq-to-sql linq-to-entities
Sedat kapanoglu
source share