-
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
Shared-Type Entities: Self-Identifying entity instance #21293
Milestone
Comments
I still have commit somewhere. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently when user uses
DbContext.Add
API, we can look up entity type based on the clr type of the entity instance. That does not work for Shared-Type entities. Hence we currently disallow using context-level APIs for shared-types. User must use DbSet.In order to solve this, we could allow shared type entity instances which are self-identifying by using one of the property on the instance to give us name of the entity type.
The text was updated successfully, but these errors were encountered: