语言

RelationalModelValidator.ThrowPropertyNotMappedException 方法

定义

重载

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

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

ThrowPropertyNotMappedException(String, IConventionTypeBase, IConventionProperty)

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

ThrowPropertyNotMappedException(String, ITypeBase, IProperty)

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

ThrowPropertyNotMappedException(String, IConventionEntityType, IConventionProperty)

Source:
RelationalModelValidator.cs

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

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

参数

propertyType
String

属性 CLR 类型。

entityType
IConventionEntityType

实体类型。

unmappedProperty
IConventionProperty

属性。

适用于

ThrowPropertyNotMappedException(String, IConventionTypeBase, IConventionProperty)

Source:
RelationalModelValidator.cs
Source:
RelationalModelValidator.cs
Source:
RelationalModelValidator.cs

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

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

参数

propertyType
String

属性 CLR 类型。

typeBase
IConventionTypeBase

结构类型。

unmappedProperty
IConventionProperty

属性。

适用于

ThrowPropertyNotMappedException(String, ITypeBase, IProperty)

Source:
RelationalModelValidator.cs

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

protected override void ThrowPropertyNotMappedException(string propertyType, Microsoft.EntityFrameworkCore.Metadata.ITypeBase typeBase, Microsoft.EntityFrameworkCore.Metadata.IProperty unmappedProperty);
override this.ThrowPropertyNotMappedException : string * Microsoft.EntityFrameworkCore.Metadata.ITypeBase * Microsoft.EntityFrameworkCore.Metadata.IProperty -> unit
Protected Overrides Sub ThrowPropertyNotMappedException (propertyType As String, typeBase As ITypeBase, unmappedProperty As IProperty)

参数

propertyType
String

属性 CLR 类型。

typeBase
ITypeBase

结构类型。

unmappedProperty
IProperty

属性。

适用于