实体框架7联合查询错误

时间:2016-01-14 13:11:40

标签: entity-framework entity-framework-core

此查询适用于EF6:

var ids = new int[] { 1, 2, 3 };
var consultants = _dbContext.Times
    .Where(t => ids.Contains(t.MilestoneId))
    .Select(t => t.Consultant)
    .Union(
        _dbContext.TimeBudgets
            .Where(tb => ids.Contains(tb.MilestoneId))
            .Select(tb => tb.Consultant)
     );

在EF7中,我收到错误:

An unhandled exception occurred while processing the request.

1 个答案:

答案 0 :(得分:0)

这似乎尚未实施(尚未)。 https://github.com/aspnet/EntityFramework/issues/3459

相关问题