TypeMappingSourceBase.ValidateMapping(CoreTypeMapping, IProperty) 方法

定义

在找到映射后调用,以便可以针对给定属性对其进行验证。

protected virtual void ValidateMapping (Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping mapping, Microsoft.EntityFrameworkCore.Metadata.IProperty property);
protected virtual void ValidateMapping (Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? mapping, Microsoft.EntityFrameworkCore.Metadata.IProperty? property);
abstract member ValidateMapping : Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping * Microsoft.EntityFrameworkCore.Metadata.IProperty -> unit
override this.ValidateMapping : Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping * Microsoft.EntityFrameworkCore.Metadata.IProperty -> unit
Protected Overridable Sub ValidateMapping (mapping As CoreTypeMapping, property As IProperty)

参数

mapping
CoreTypeMapping

映射(如果有)。

property
IProperty

属性(如果有)。

适用于