ReferentialConstraint Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for