Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linq Union #129

Closed
sexysat opened this issue Nov 26, 2016 · 1 comment
Closed

Linq Union #129

sexysat opened this issue Nov 26, 2016 · 1 comment

Comments

@sexysat
Copy link

sexysat commented Nov 26, 2016

Im trying to do a UNION ALL query in MySQL using LINQ Concat but the queries are run separately using Local evaluation

var epg = EPG.Data.Where(e => e.ChannelId == 100).Select(c => c.ChannelId)
                .Concat(EPG.Data.Where(e => e.ChannelId == 972).Select(c => c.ChannelId));

In the console this message is shown

warn: Microsoft.EntityFrameworkCore.Query.Internal.MySqlQueryCompilationContextFactory[8]
The LINQ expression 'Concat({from EPGItem e in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[WebApplication.Models.EPGItem]) where ([e].ChannelId == 972) select [e].ChannelId})' could not be translated and will be evaluated locally.

MySQL version: 5.7.16-0ubuntu0.16.04.1-log
Operating system: Ubuntu 16.04
Pomelo.EntityFrameworkCore.MySql version: 1.1.0

@yukozh yukozh added this to the 1.2.0 milestone Nov 27, 2016
@yukozh yukozh modified the milestones: backlog, 1.2.0 Jan 9, 2017
@yukozh yukozh closed this as completed Jan 9, 2017
@yukozh
Copy link
Member

yukozh commented Jan 9, 2017

dotnet/efcore#6812

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants