共用方式為


RelationalModelValidator.ThrowPropertyNotMappedException 方法

定義

多載

ThrowPropertyNotMappedException(String, IConventionEntityType, IConventionProperty)

InvalidOperationException當可用時,擲回含有提供者特定資訊的訊息,指出屬性無法對應的可能原因。

ThrowPropertyNotMappedException(String, IConventionTypeBase, IConventionProperty)

InvalidOperationException當可用時,擲回含有提供者特定資訊的訊息,指出屬性無法對應的可能原因。

ThrowPropertyNotMappedException(String, IConventionEntityType, IConventionProperty)

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)

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

屬性。

適用於