1 write to _principalRole
System.Data.Entity (1)
System\Data\EntityModel\SchemaObjectModel\ReferentialConstraint.cs (1)
320_principalRole = new ReferentialConstraintRoleElement(this);
17 references to _principalRole
System.Data.Entity (17)
System\Data\EntityModel\SchemaObjectModel\ReferentialConstraint.cs (17)
40_principalRole.Validate(); 43if (ReadyForFurtherValidation(_principalRole) && ReadyForFurtherValidation(_dependentRole)) 46IRelationshipEnd principalRoleEnd = _principalRole.End; 55if (_principalRole.Name == _dependentRole.Name) 72IsKeyProperty(_principalRole, principalRoleEnd.Type, 78Debug.Assert(_principalRole.RoleProperties.Count != 0, "There should be some ref properties in Principal Role"); 115System.Data.Entity.Strings.InvalidMultiplicityFromRoleUpperBoundMustBeOne(_principalRole.Name, this.ParentElement.Name)); 120string message = System.Data.Entity.Strings.InvalidMultiplicityFromRoleToPropertyNullableV1(_principalRole.Name, this.ParentElement.Name); 134message = System.Data.Entity.Strings.InvalidMultiplicityFromRoleToPropertyNonNullableV1(_principalRole.Name, this.ParentElement.Name); 138message = System.Data.Entity.Strings.InvalidMultiplicityFromRoleToPropertyNonNullableV2(_principalRole.Name, this.ParentElement.Name); 188if (_dependentRole.RoleProperties.Count != _principalRole.RoleProperties.Count) 198if (_dependentRole.RoleProperties[i].Property.Type != _principalRole.RoleProperties[i].Property.Type) 205_principalRole.RoleProperties[i].Name, 206_principalRole.End.Type.Identity, 321_principalRole.Parse(reader); 334_principalRole.ResolveTopLevelNames(); 352return _principalRole;