验证导航属性是否具有 ContainsTarget= true,目标实体类型是否与属性的声明类型不同,以及导航源的多重性是否为 One。
命名空间: Microsoft.Data.Edm.Validation
程序集: Microsoft.Data.Edm(在 Microsoft.Data.Edm.dll 中)
语法
声明
Public Shared ReadOnly NavigationPropertyWithNonRecursiveContainmentSourceMustBeFromOne As ValidationRule(Of IEdmNavigationProperty)
用法
Dim value As ValidationRule(Of IEdmNavigationProperty)
value = ValidationRules.NavigationPropertyWithNonRecursiveContainmentSourceMustBeFromOne
public static readonly ValidationRule<IEdmNavigationProperty> NavigationPropertyWithNonRecursiveContainmentSourceMustBeFromOne
public:
static initonly ValidationRule<IEdmNavigationProperty^>^ NavigationPropertyWithNonRecursiveContainmentSourceMustBeFromOne
static val NavigationPropertyWithNonRecursiveContainmentSourceMustBeFromOne: ValidationRule<IEdmNavigationProperty>
public static final var NavigationPropertyWithNonRecursiveContainmentSourceMustBeFromOne : ValidationRule<IEdmNavigationProperty>