語言

ModelValidator.ThrowPropertyNotMappedException 方法

定義

多載

名稱 Description
ThrowPropertyNotMappedException(String, IConventionTypeBase, IConventionProperty)

若有,會拋 InvalidOperationException 出包含提供者特定資訊的訊息,指出該屬性無法映射的可能原因。

ThrowPropertyNotMappedException(String, ITypeBase, IProperty)

若有,會拋 InvalidOperationException 出包含提供者特定資訊的訊息,指出該屬性無法映射的可能原因。

ThrowPropertyNotMappedException(String, IConventionEntityType, IConventionProperty)

若有,會拋 InvalidOperationException 出包含提供者特定資訊的訊息,指出該屬性無法映射的可能原因。

ThrowPropertyNotMappedException(String, IConventionTypeBase, IConventionProperty)

來源:
ModelValidator.cs
來源:
ModelValidator.cs
來源:
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)

來源:
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)

來源:
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

屬性。

適用於