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
Looking at MetadataGenerator.PopulateRelationshipProperty method I can see that One-to-many and Many-to-one relationships are not generated properly. In both cases ReferencedEntity/ReferencedAttribute and ReferencingEntity/ReferencingAttribute pairs are switched.
When dataverse generates One-to-many relationship, ReferencedEntity represents "One" part of relationship and ReferencingEntity represents "many" side of relationship. So if we have a collection property, that represents One-to-many relationship, the type in which this property is located should be ReferencedEntity and the generic argument of collection should be ReferencingEntity.
The text was updated successfully, but these errors were encountered:
Looking at MetadataGenerator.PopulateRelationshipProperty method I can see that One-to-many and Many-to-one relationships are not generated properly. In both cases ReferencedEntity/ReferencedAttribute and ReferencingEntity/ReferencingAttribute pairs are switched.
When dataverse generates One-to-many relationship, ReferencedEntity represents "One" part of relationship and ReferencingEntity represents "many" side of relationship. So if we have a collection property, that represents One-to-many relationship, the type in which this property is located should be ReferencedEntity and the generic argument of collection should be ReferencingEntity.
The text was updated successfully, but these errors were encountered: