You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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: