linq的多条件查询无非就是用where方法。
var entitys=entityFacade.GetAll().ToDataSourceResult(request, ModelState);
if(!string.IsNullOrEmpty(SID)){
entitys=entitys.Where(x=>x.SID=='123');
}
if(!string.IsNullOrEmpty(SPwd)){
entitys=entitys.Where(x=>x.SPwd=='123');
}
return Json(entitys)