ModelValidator.ThrowPropertyNotMappedException 方法

定义

重载

ThrowPropertyNotMappedException(String, IConventionEntityType, IConventionProperty)

引发 , InvalidOperationException 其中包含包含提供程序特定信息的消息(如果可用),指示无法映射属性的可能原因。

ThrowPropertyNotMappedException(String, IConventionTypeBase, IConventionProperty)

引发 , InvalidOperationException 其中包含包含提供程序特定信息的消息(如果可用),指示无法映射属性的可能原因。

ThrowPropertyNotMappedException(String, IConventionEntityType, IConventionProperty)

Source:
ModelValidator.cs

引发 , InvalidOperationException 其中包含包含提供程序特定信息的消息(如果可用),指示无法映射属性的可能原因。

protected virtual void ThrowPropertyNotMappedException (string propertyType, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IConventionProperty unmappedProperty);
abstract member ThrowPropertyNotMappedException : string * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Microsoft.EntityFrameworkCore.Metadata.IConventionProperty -> unit
override this.ThrowPropertyNotMappedException : string * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Microsoft.EntityFrameworkCore.Metadata.IConventionProperty -> unit
Protected Overridable Sub ThrowPropertyNotMappedException (propertyType As String, entityType As IConventionEntityType, unmappedProperty As IConventionProperty)

参数

propertyType
String

属性 CLR 类型。

entityType
IConventionEntityType

实体类型。

unmappedProperty
IConventionProperty

属性。

适用于

ThrowPropertyNotMappedException(String, IConventionTypeBase, IConventionProperty)

Source:
ModelValidator.cs
Source:
ModelValidator.cs

引发 , InvalidOperationException 其中包含包含提供程序特定信息的消息(如果可用),指示无法映射属性的可能原因。

protected virtual void ThrowPropertyNotMappedException (string propertyType, Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase typeBase, Microsoft.EntityFrameworkCore.Metadata.IConventionProperty unmappedProperty);
abstract member ThrowPropertyNotMappedException : string * Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase * Microsoft.EntityFrameworkCore.Metadata.IConventionProperty -> unit
override this.ThrowPropertyNotMappedException : string * Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase * Microsoft.EntityFrameworkCore.Metadata.IConventionProperty -> unit
Protected Overridable Sub ThrowPropertyNotMappedException (propertyType As String, typeBase As IConventionTypeBase, unmappedProperty As IConventionProperty)

参数

propertyType
String

属性 CLR 类型。

typeBase
IConventionTypeBase

结构类型。

unmappedProperty
IConventionProperty

属性。

适用于