[英]How do I work with a join table in LINQ?
与我的LINQ进行多对多连接表挣扎:-(
我有College,Student和StudentApplications实体。
A College has many StudentApplications
A Student has many StudentApplications (for a number of different Colleges)
如何最好地让所有已申请大学的学生?
我更喜欢使用Lambda表达式。
或者,如果您可以指向一个好的在线教程,可以帮助我自己做得更好!
EF核心错误
在基于答案实施(感谢)的过程中,我遇到了EF 7 / Core在此方面的错误。 我提出了以下问题:
students.Where(s => s.Applications.Any(a => a.College == searchCollege));
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.