LINQ to SQL always converts values into query parameters in the output. For example:
someTable.Where(n => n.Field == 5);
produces:
WHERE Field = @p0
This causes problems on certain query optimization scenarios. Is there a way to force values to be inlined in generated SQL, so that it becomes:
WHERE Field = 5
? Would LINQ to Entities provide a way or does it behave the same?