语言

ModelValidator.ThrowPropertyNotMappedException 方法

定义

重载

名称 说明
ThrowPropertyNotMappedException(String, IConventionTypeBase, IConventionProperty)

当可用时,会 InvalidOperationException 引发包含提供程序特定信息的消息,指示属性无法映射的可能原因。

ThrowPropertyNotMappedException(String, ITypeBase, IProperty)

当可用时,会 InvalidOperationException 引发包含提供程序特定信息的消息,指示属性无法映射的可能原因。

ThrowPropertyNotMappedException(String, IConventionEntityType, IConventionProperty)

当可用时,会 InvalidOperationException 引发包含提供程序特定信息的消息,指示属性无法映射的可能原因。

ThrowPropertyNotMappedException(String, IConventionTypeBase, IConventionProperty)

Source:
ModelValidator.cs
Source:
ModelValidator.cs
Source:
ModelValidator.cs

当可用时,会 InvalidOperationException 引发包含提供程序特定信息的消息,指示属性无法映射的可能原因。

protected virtual void ThrowPropertyNotMappedException(string propertyType, Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase structuralType, Microsoft.EntityFrameworkCore.Metadata.IConventionProperty unmappedProperty);
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
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, structuralType As IConventionTypeBase, unmappedProperty As IConventionProperty)
Protected Overridable Sub ThrowPropertyNotMappedException (propertyType As String, typeBase As IConventionTypeBase, unmappedProperty As IConventionProperty)

参数

propertyType
String

属性 CLR 类型。

structuralTypetypeBase
IConventionTypeBase

结构类型。

unmappedProperty
IConventionProperty

属性。

适用于

ThrowPropertyNotMappedException(String, ITypeBase, IProperty)

Source:
ModelValidator.cs

当可用时,会 InvalidOperationException 引发包含提供程序特定信息的消息,指示属性无法映射的可能原因。

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

参数

propertyType
String

属性 CLR 类型。

structuralType
ITypeBase

结构类型。

unmappedProperty
IProperty

属性。

适用于

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

属性。

适用于