首页 > 代码库 > [ASP.NET]EF选一个空表的情况

[ASP.NET]EF选一个空表的情况

 

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