Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

linq c# where condition

var query = MemberTable.Where(x=>x.sex.Equals(Sex))

if (members != null)
     query = query.Where(x=>members.Contains(x.membercode))

//use your query
query.ToList();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linq #condition
ADD COMMENT
Topic
Name
5+7 =