📜  linq c# where 条件 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:09.536000             🧑  作者: Mango

代码示例1
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();