ModelValidator.ThrowPropertyNotMappedException 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ThrowPropertyNotMappedException(String, IConventionEntityType, IConventionProperty) |
InvalidOperationException當可用時,擲回含有提供者特定資訊的訊息,指出屬性無法對應的可能原因。 |
ThrowPropertyNotMappedException(String, IConventionTypeBase, IConventionProperty) |
InvalidOperationException當可用時,擲回含有提供者特定資訊的訊息,指出屬性無法對應的可能原因。 |
ThrowPropertyNotMappedException(String, IConventionEntityType, IConventionProperty)
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)
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
屬性。