public List<DAL.StuFillAnswers> FillsToCheck(int sid,int eid) { using (DAL.ExamSysEntities db = new DAL.ExamSysEntities()) { return db.StuFillAnswers.Where(x => x.StuID == sid && x.ExamID == eid).ToList(); } }
返回的是count为0的list
[ASP.NET]EF选一个空表的情况,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/tonghounb/p/3847788.html