Share via


ReferentialConstraint Constructor

Definition

Constructs a new constraint on the relationship

public ReferentialConstraint (System.Data.Entity.Core.Metadata.Edm.RelationshipEndMember fromRole, System.Data.Entity.Core.Metadata.Edm.RelationshipEndMember toRole, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Metadata.Edm.EdmProperty> fromProperties, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Metadata.Edm.EdmProperty> toProperties);
new System.Data.Entity.Core.Metadata.Edm.ReferentialConstraint : System.Data.Entity.Core.Metadata.Edm.RelationshipEndMember * System.Data.Entity.Core.Metadata.Edm.RelationshipEndMember * seq<System.Data.Entity.Core.Metadata.Edm.EdmProperty> * seq<System.Data.Entity.Core.Metadata.Edm.EdmProperty> -> System.Data.Entity.Core.Metadata.Edm.ReferentialConstraint
Public Sub New (fromRole As RelationshipEndMember, toRole As RelationshipEndMember, fromProperties As IEnumerable(Of EdmProperty), toProperties As IEnumerable(Of EdmProperty))

Parameters

fromRole
RelationshipEndMember

role from which the relationship originates

toRole
RelationshipEndMember

role to which the relationship is linked/targeted to

fromProperties
IEnumerable<EdmProperty>

properties on entity type of to role which take part in the constraint

toProperties
IEnumerable<EdmProperty>

properties on entity type of from role which take part in the constraint

Exceptions

Argument Null exception if any of the arguments is null

Applies to