-
Notifications
You must be signed in to change notification settings - Fork 19
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
AutoMapper ProjectTo() blows up. #29
Comments
Hmm... I'm using DataTables.Queryable with AutoMapper too, but never faced with the same issue. May be it's because of |
Give me a minute and I'll get you a sample.
…On Thu, Nov 1, 2018, 1:29 PM Alexander Krutov ***@***.*** wrote:
Hmm... I'm using DataTables.Queryable with AutoMapper too, but never faced
with the same issue. May be it's because of
Microsoft.EntityFrameworkCore.Query. Need time to verify.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACzG6zdi-g2v2cMoxNbqkHBBO1q22Ll8ks5uqz1ugaJpZM4YCWsy>
.
|
@AlexanderKrutov here you go: https://github.com/VictorioBerra/DataTables.Queryable.ProjectTo.Issue.29 The code that breaks is here: https://github.com/VictorioBerra/DataTables.Queryable.ProjectTo.Issue.29/blob/master/Program.cs#L90 To get started run these, it will automatically drop the SQLIte DB and migrate and seed on every run. git clone https://github.com/VictorioBerra/DataTables.Queryable.ProjectTo.Issue.29.git
cd DataTables-ProjectTo-issue-29/
dotnet run
|
Grab this branch if you want a solution file and a local clone of DataTables.Queryable so you can debug it on the fly. |
http://docs.automapper.org/en/stable/Queryable-Extensions.html
https://github.com/AlexanderKrutov/DataTables.Queryable/blob/master/DataTables.Queryable/DataTablesQueryProvider.cs#L17-L25
My code:
I think
ProjectTo
is invokingCreateQuery
because under the hood it runs.Select()
. I am not sure, I am a little out of my experience zone. Maybe we need to be doingAsQueryable()
instead of casing in the QueryProvider?The text was updated successfully, but these errors were encountered: