Entity Framework 7 Union Query error

entity-framework entity-framework-core

Question

This query works in 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)
     );

In EF7, I get the error:

An unhandled exception occurred while processing the request.
1
0
1/14/2016 1:11:40 PM

Accepted Answer

This appears to be Not Implemented (yet). https://github.com/aspnet/EntityFramework/issues/3459

0
1/14/2016 2:14:38 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow