111,126
社区成员
发帖
与我相关
我的任务
分享
DatabaseDataContext db = new DatabaseDataContext();
public Table1 GetTable(int colId, string accountName, string accountPassword, string accountEmail)
{
db.Table1.Where(p=> ); // 这里该怎么写一句lambda,才能符合下面的要求?
}
db.Table1.Where(p=> (colId<=0?p.colId>0:p.colId==colId) && (string.IsNullOrEmpty(accountEmail)?p.accountEmail!=null : p.accountEmail == accountEmail) && ......);