This method returns the underlying CLR type of the o-space type corresponding to the supplied typeUsage
Note that for an enum type this means that the type backing the enum will be returned, not the enum type itself.
public static EdmProperty GetCorrespondingDependentProperty(NavigationProperty navProperty, EdmProperty principalProperty)
Given a property on the principal end of a referential constraint, returns the corresponding property on the dependent end.
Requires: The association has a referential constraint, and the specified principalProperty is one of the properties on the principal end.
public static EdmProperty GetCorrespondingPrincipalProperty(NavigationProperty navProperty, EdmProperty dependentProperty)
Given a property on the dependent end of a referential constraint, returns the corresponding property on the principal end.
Requires: The association has a referential constraint, and the specified dependentProperty is one of the properties on the dependent end.
public static ReadOnlyMetadataCollection<EdmProperty> GetDependentProperties(NavigationProperty navProperty)
Gets the collection of properties that are on the dependent end of a referential constraint for the specified navigation property.
Requires: The association has a referential constraint.
public static ReadOnlyMetadataCollection<EdmProperty> GetPrincipalProperties(NavigationProperty navProperty)
Gets the collection of properties that are on the principal end of a referential constraint for the specified navigation property.
Requires: The association has a referential constraint.
public static bool IsCascadeDeletePrincipal(NavigationProperty navProperty)
True if the source end of the specified navigation property is the principal in an identifying relationship.
or if the source end has cascade delete defined.
public static bool IsIdentifyingRelationship(AssociationType association)
True if the specified association type is an identifying relationship.
In order to be an identifying relationship, the association must have a referential constraint where all of the dependent properties are part of the dependent type’s primary key.
public static bool IsPrincipalEndOfIdentifyingRelationship(AssociationEndMember associationEnd)
True if the specified association end is the principal end in an identifying relationship.
In order to be an identifying relationship, the association must have a referential constraint where all of the dependent properties are part of the dependent type’s primary key.
public static bool IsSubtypeOf(EdmType firstType, EdmType secondType)
requires: firstType is not null
effects: if secondType is among the base types of the firstType, return true,
otherwise returns false.
when firstType is same as the secondType, return false.
public static Type UnderlyingClrType(EdmType edmType)
This method returns the underlying CLR type given the c-space type.
Note that for an enum type this means that the type backing the enum will be returned, not the enum type itself.