Skip to main content

All Questions

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( ...
sharptooth's user avatar
  • 171k