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

Issue with netcoreapp3.0 / EF Core 3.0.0 and derived types #5

Closed
GeorgDangl opened this issue Oct 15, 2019 · 1 comment
Closed

Issue with netcoreapp3.0 / EF Core 3.0.0 and derived types #5

GeorgDangl opened this issue Oct 15, 2019 · 1 comment

Comments

@GeorgDangl
Copy link
Owner

See this issue in the EF Core repo: dotnet/efcore#18386

Suggested workaround is currently to not use classes for projections in LightQuery that derive from the class used in the DbContext. Best practice would be to completely separate classes used in EntityFramework and ViewModels or Data Transfer Objects (DTOs).

@GeorgDangl
Copy link
Owner Author

Fixed with release v1.7.1, thanks to @binard and @smitpatel!

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

No branches or pull requests

1 participant