All Questions
Tagged with parameter-sniffing .net
1 question
4
votes
1
answer
283
views
Can I make Linq-To-Sql embed the actual values into the query instead of passing them as parameters?
I have the following piece of code:
IQueryable<SomeType> allItems = ...;
var selectedItems = allItems.Where( item => ( item.State == 1 || item.State == 3 ) );
Console.WriteLine( ...