Bob*_*les 1 c# mysql asp.net-mvc entity-framework
我有以下Linq查询我正在使用实体框架.
var res = from a in _db.Articles
from auth in a.Authors
where papers.Contains(a.JoomlaId)
select auth.Institution;
Run Code Online (Sandbox Code Playgroud)
问题是我的机构类有一个名为" Type"的变量,InstitutionType"我需要包含",我不知道该怎么做.
Mac*_*iej 10
var res = from a in _db.Articles.Include("Authors")
.Include("Authors.Institution")
.Include("Authors.Institution.Type")
from auth in a.Authors
where papers.Contains(a.JoomlaId)
select auth.Institution;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
14134 次 |
| 最近记录: |