共用方式為


RelationalModelValidator.ValidateJsonEntityRoot 方法

定義

驗證對應至 JSON 資料行的根實體。

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

參數

storeObject
StoreObjectIdentifier

store 物件。

rootType
IEntityType

要驗證的實體類型。

適用於