-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: V4.0_ERRATA03
-
Fix Version/s: V4.01_WD01
-
Component/s: CSDL XML
-
Labels:None
-
Proposal:
An entity cannot be referenced by more than one containment relationship, and cannot both belong to an entity set declared within the entity container and be referenced by a containment relationship.
Current rules around recursive containment and partner navigation properties seem to be sufficient to achieve this goal. but may not be necessary, i.e. seem overly restrictive.
A counter-example to the current rules can be constructed by redefining a partner navigation property with a more specific type, which is allowed now:
- EntityType Name=FileSystemEntry
- NavigationProperty Name=Parent Type=this.FileSystemEntry Nullable=true
- EntityType Name=Folder BaseType=this.FileSystemEntry
- NavigationProperty Name=Children Type=Collection(this.FileSystemEntry) Partner=Parent
- EntityType Name=File BaseType=this.FileSystemEntry
- NavigationProperty Name=Parent Type=this.Folder Nullable=false