📅  最后修改于: 2022-03-11 14:49:09.536000             🧑  作者: Mango
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();