-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Throw when non-owned type is derived from an owned type. #17429
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
Comments
The model is invalid in EF core. First one should also be throwing exception. A regular entityType cannot be derived from an owned entityType. |
Model built in 3.0 for first case:
|
AndriySvyryd
changed the title
A key cannot be configured on '' because it is a derived type.
Throw when non-owned type is derived from an owned type.
Aug 26, 2019
AndriySvyryd
added a commit
that referenced
this issue
Aug 28, 2019
AndriySvyryd
added a commit
that referenced
this issue
Aug 28, 2019
AndriySvyryd
added a commit
that referenced
this issue
Aug 28, 2019
AndriySvyryd
added a commit
that referenced
this issue
Aug 28, 2019
AndriySvyryd
added a commit
that referenced
this issue
Aug 28, 2019
AndriySvyryd
added
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
labels
Aug 29, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Hello,
I have two similar pieces of code. The first works correctly. The second throws an exception. The difference is only in the order of entity registration (OnModelCreating).
Steps to reproduce
dotnet ef migrations add Init
Correctly
Exception
Further technical details
EF Core version: 2.2.4
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10
IDE: JetBrains Rider 2019.2
The text was updated successfully, but these errors were encountered: