RelationalModelValidator.ValidateJsonEntityKey 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
驗證對應到 JSON 欄位的實體鍵。
protected virtual void ValidateJsonEntityKey(in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier storeObject, Microsoft.EntityFrameworkCore.Metadata.IEntityType jsonEntityType);
protected virtual void ValidateJsonEntityKey(in Microsoft.EntityFrameworkCore.Metadata.StoreObjectIdentifier table, Microsoft.EntityFrameworkCore.Metadata.IEntityType jsonEntityType);
abstract member ValidateJsonEntityKey : StoreObjectIdentifier * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> unit
override this.ValidateJsonEntityKey : StoreObjectIdentifier * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> unit
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)
Protected Overridable Sub ValidateJsonEntityKey (table As StoreObjectIdentifier, jsonEntityType As IEntityType)
參數
- storeObjecttable
- StoreObjectIdentifier
商店物件。
- jsonEntityType
- IEntityType
包含要驗證的金鑰的實體類型。