验证实体的键中的所有属性都属于该实体。
命名空间: Microsoft.Data.Edm.Validation
程序集: Microsoft.Data.Edm(在 Microsoft.Data.Edm.dll 中)
语法
声明
Public Shared ReadOnly EntityTypeKeyPropertyMustBelongToEntity As ValidationRule(Of IEdmEntityType)
用法
Dim value As ValidationRule(Of IEdmEntityType)
value = ValidationRules.EntityTypeKeyPropertyMustBelongToEntity
public static readonly ValidationRule<IEdmEntityType> EntityTypeKeyPropertyMustBelongToEntity
public:
static initonly ValidationRule<IEdmEntityType^>^ EntityTypeKeyPropertyMustBelongToEntity
static val EntityTypeKeyPropertyMustBelongToEntity: ValidationRule<IEdmEntityType>
public static final var EntityTypeKeyPropertyMustBelongToEntity : ValidationRule<IEdmEntityType>