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
My PJTs have only two foreign keys and a UNIQUE CLUSTERED constraint (clustered constraint to satisfy Azure SQL db requirement).
EF7 does not support creation of an entity class for a table without a primary key, so an entity class for the PJT itself will not be created either. The following comment is place in the corresponding PJT entity class file -
"// Unable to generate EntityType EntityA_EntityB. Unable to identify any primary key columns in the underlying SQL Server table [dbo].[EntityA_EntityB]."
Am I missing something? I googled and googled to no avail. Will this PJT feature be in EF7? Certainly seems like an ante for any ORM tool.
Thanks
The text was updated successfully, but these errors were encountered:
Many-to-many without the intermediate join table is not supported by the first stable release of EF7. We do allow many-to-many but only if you include the intermediate table as an entity - and that adds the requirement that it have a primary key. We are tracking this with #1368. So closing this as a dupe.
EF 7.0.0-beta7 revEng does not seem to support Pure Join Tables (PFJs).
EF6 does reverse engineer PJTs. In doing so EF6 does not include the entity class of the PJT itself, instead placing collections directly in each of the entities joined by the PJT. ref https://msdn.microsoft.com/en-us/library/vstudio/dd742359(v=vs.100).aspx
My PJTs have only two foreign keys and a UNIQUE CLUSTERED constraint (clustered constraint to satisfy Azure SQL db requirement).
EF7 does not support creation of an entity class for a table without a primary key, so an entity class for the PJT itself will not be created either. The following comment is place in the corresponding PJT entity class file -
"// Unable to generate EntityType EntityA_EntityB. Unable to identify any primary key columns in the underlying SQL Server table [dbo].[EntityA_EntityB]."
Am I missing something? I googled and googled to no avail. Will this PJT feature be in EF7? Certainly seems like an ante for any ORM tool.
Thanks
The text was updated successfully, but these errors were encountered: