已知学生(Student)实体类的定义如下: public class Student{ [key] public string id {get;set;} //学号 public string sname {get;set;} //姓名 public string classid {get;set;} //所属班级编号 } 在EF的上下文StuContext中有学生列表Students,以下哪个语句能查找出姓名为””的学生信息:
A.
StuContext.Students.Where(s=> s.sname.Equals(“”))
B.
StuContext.Students.First(s=> s.sname.Equals(“”))
C.
StuContext.Students.Find(s=> s.sname.Equals(“”))
D.
StuContext.Students.Find(“”)
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】Mark often attempts to escape _____ whenever he breaks traffic regulations. (A) having been fined (C) to have been fined (B) to be fined (D) being fined