【发布时间】:2019-02-10 19:15:18
【问题描述】:
我需要在 ThenInclude 中使用 where
var templatesFields = await _context.Sections
.Include(x => x.Subtitles)
.ThenInclude(r => r.Fields.Where(t=>t.TemplatesFields.TemplateID==TemplateID))
.ThenInclude(r => r.OptionSources)
.ThenInclude(r => r.OptionsSourcesDetails)
.ToListAsync();
【问题讨论】:
标签: entity-framework linq api asp.net-core .net-core