Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

where in used in linq c#

var myInClause = new string[] {"One", "Two", "Three"};

var results = from x in MyTable
              where myInClause.Contains(x.SomeColumn)
              select x;
// OR
var results = MyTable.Where(x => myInClause.Contains(x.SomeColumn));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linq
ADD COMMENT
Topic
Name
6+7 =