RelationalModelValidator.ValidateJsonEntityKey 方法

定义

验证映射到 JSON 列的实体的键。

protected virtual void ValidateJsonEntityKey (in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, Microsoft.EntityFrameworkCore.Metadata.IEntityType jsonEntityType);
abstract member ValidateJsonEntityKey : StoreObjectIdentifier * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> unit
override this.ValidateJsonEntityKey : StoreObjectIdentifier * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> unit
Protected Overridable Sub ValidateJsonEntityKey (storeObject As StoreObjectIdentifier, jsonEntityType As IEntityType)

参数

storeObject
StoreObjectIdentifier

存储对象。

jsonEntityType
IEntityType

包含要验证的键的实体类型。

适用于