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

Shared-Type Entities: Self-Identifying entity instance #21293

Open
Tracked by #22954
smitpatel opened this issue Jun 16, 2020 · 1 comment
Open
Tracked by #22954

Shared-Type Entities: Self-Identifying entity instance #21293

smitpatel opened this issue Jun 16, 2020 · 1 comment

Comments

@smitpatel
Copy link
Member

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.

@smitpatel
Copy link
Member Author

I still have commit somewhere.

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

3 participants