ValidationRules.NavigationPropertyWithRecursiveContainmentSourceMustBeFromZeroOrOne Field
Validates that if a navigation property has ContainsTarget = true and the target entity type is the same as the declaring type of the property, then the multiplicity of the source of navigation is Zero-Or-One. This depends on there being a targetting cycle. Because of the rule EntitySetNavigationMappingMustBeBidirectional, we know that either this is always true, or there will be an error
Namespace: Microsoft.Data.Edm.Validation
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
Public Shared ReadOnly NavigationPropertyWithRecursiveContainmentSourceMustBeFromZeroOrOne As ValidationRule(Of IEdmNavigationProperty)
'Usage
Dim value As ValidationRule(Of IEdmNavigationProperty)
value = ValidationRules.NavigationPropertyWithRecursiveContainmentSourceMustBeFromZeroOrOne
public static readonly ValidationRule<IEdmNavigationProperty> NavigationPropertyWithRecursiveContainmentSourceMustBeFromZeroOrOne
public:
static initonly ValidationRule<IEdmNavigationProperty^>^ NavigationPropertyWithRecursiveContainmentSourceMustBeFromZeroOrOne
static val NavigationPropertyWithRecursiveContainmentSourceMustBeFromZeroOrOne: ValidationRule<IEdmNavigationProperty>
public static final var NavigationPropertyWithRecursiveContainmentSourceMustBeFromZeroOrOne : ValidationRule<IEdmNavigationProperty>