日期:2014-05-17 浏览次数:21001 次
var query = db.TableName; if (a != "") query = query.Where(x => x.a == a); if (b != "") query = query.Where(x => x.b == b); //query = db.TableName.Where(x => x.a == a && x.b == b);