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();
43
if (ReadyForFurtherValidation(
_principalRole
) && ReadyForFurtherValidation(_dependentRole))
46
IRelationshipEnd principalRoleEnd =
_principalRole
.End;
55
if (
_principalRole
.Name == _dependentRole.Name)
72
IsKeyProperty(
_principalRole
, principalRoleEnd.Type,
78
Debug.Assert(
_principalRole
.RoleProperties.Count != 0, "There should be some ref properties in Principal Role");
115
System.Data.Entity.Strings.InvalidMultiplicityFromRoleUpperBoundMustBeOne(
_principalRole
.Name, this.ParentElement.Name));
120
string message = System.Data.Entity.Strings.InvalidMultiplicityFromRoleToPropertyNullableV1(
_principalRole
.Name, this.ParentElement.Name);
134
message = System.Data.Entity.Strings.InvalidMultiplicityFromRoleToPropertyNonNullableV1(
_principalRole
.Name, this.ParentElement.Name);
138
message = System.Data.Entity.Strings.InvalidMultiplicityFromRoleToPropertyNonNullableV2(
_principalRole
.Name, this.ParentElement.Name);
188
if (_dependentRole.RoleProperties.Count !=
_principalRole
.RoleProperties.Count)
198
if (_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();
352
return
_principalRole
;