ReferentialConstraint Constructor (RelationshipEndMember, RelationshipEndMember, IEnumerable<EdmProperty>, IEnumerable<EdmProperty>)
Constructs a new constraint on the relationship
Assembly: EntityFramework (in EntityFramework.dll)
public ReferentialConstraint(
RelationshipEndMember fromRole,
RelationshipEndMember toRole,
IEnumerable<EdmProperty> fromProperties,
IEnumerable<EdmProperty> toProperties
)
Parameters
- fromRole
-
Type:
System.Data.Entity.Core.Metadata.Edm.RelationshipEndMember
role from which the relationship originates
- toRole
-
Type:
System.Data.Entity.Core.Metadata.Edm.RelationshipEndMember
role to which the relationship is linked/targeted to
- fromProperties
-
Type:
System.Collections.Generic.IEnumerable<EdmProperty>
properties on entity type of to role which take part in the constraint
- toProperties
-
Type:
System.Collections.Generic.IEnumerable<EdmProperty>
properties on entity type of from role which take part in the constraint
Exception | Condition |
---|---|
ArgumentNullException | Argument Null exception if any of the arguments is null |