ef集合匹配使用in关键字
int[] statusArray=new int[]{(int)MEStatus.作业前一个月,(int)MEStatus.作业前三个月,(int)MEStatus.未施工};
return LepulsDB.DBContext.Dan_MonitorEvaluate.Count(t => t.ProjectId == projectId && t.IsComplete == iscomplete && t.Status.In(statusArray))>0;

浙公网安备 33010602011771号