ReferentialConstraint Class

Definition

This class represents a referential constraint between two entities specifying the "to" and "from" ends of the relationship.

public sealed class ReferentialConstraint : System.Data.Entity.Core.Metadata.Edm.MetadataItem
type ReferentialConstraint = class
    inherit MetadataItem
Public NotInheritable Class ReferentialConstraint
Inherits MetadataItem
Inheritance
ReferentialConstraint

Constructors

ReferentialConstraint(RelationshipEndMember, RelationshipEndMember, IEnumerable<EdmProperty>, IEnumerable<EdmProperty>)

Constructs a new constraint on the relationship

Properties

BuiltInTypeKind

Gets the built-in type kind for this ReferentialConstraint.

Documentation

Gets or sets the documentation associated with this type.

(Inherited from MetadataItem)
FromProperties

Gets the list of properties for the "from role" on which this ReferentialConstraint is defined.

FromRole

Gets the "from role" that takes part in this ReferentialConstraint .

MetadataProperties

Gets the list of properties of the current type.

(Inherited from MetadataItem)
ToProperties

Gets the list of properties for the "to role" on which this ReferentialConstraint is defined.

ToRole

Gets the "to role" that takes part in this ReferentialConstraint.

Methods

AddAnnotation(String, Object)

Adds or updates an annotation with the specified name and value.

(Inherited from MetadataItem)
RemoveAnnotation(String)

Removes an annotation with the specified name.

(Inherited from MetadataItem)
ToString()

Returns the combination of the names of the FromRole and the ToRole .

Applies to