共用方式為


RelationalModelValidator.ValidateMappingStrategy(IEntityType, String) 方法

定義

驗證是否支援指定的對應策略

protected virtual void ValidateMappingStrategy (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, string? mappingStrategy);
abstract member ValidateMappingStrategy : Microsoft.EntityFrameworkCore.Metadata.IEntityType * string -> unit
override this.ValidateMappingStrategy : Microsoft.EntityFrameworkCore.Metadata.IEntityType * string -> unit
Protected Overridable Sub ValidateMappingStrategy (entityType As IEntityType, mappingStrategy As String)

參數

entityType
IEntityType

實體類型。

mappingStrategy
String

對應策略。

適用於