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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework