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

映射策略。

适用于