共用方式為


CoreStrings.PropertyNotMapped(Object, Object, Object) 方法

定義

'{propertyType}' 屬性 '{entityType}。無法對應 {property}',因為資料庫提供者不支援此類型。 請考慮使用值轉換器,將屬性值轉換為資料庫所支援的類型。 如需相關資訊,請參閱 https://aka.ms/efcore-docs-value-converters 。 或者,使用 '[NotMapped]' 屬性或 'OnModelCreating' 中的 'EntityTypeBuilder.Ignore',從模型中排除屬性。

public static string PropertyNotMapped (object entityType, object property, object propertyType);
public static string PropertyNotMapped (object? entityType, object? property, object? propertyType);
public static string PropertyNotMapped (object? propertyType, object? entityType, object? property);
static member PropertyNotMapped : obj * obj * obj -> string
static member PropertyNotMapped : obj * obj * obj -> string
Public Shared Function PropertyNotMapped (entityType As Object, property As Object, propertyType As Object) As String
Public Shared Function PropertyNotMapped (propertyType As Object, entityType As Object, property As Object) As String

參數

entityTypepropertyType
Object
propertyentityType
Object
propertyTypeproperty
Object

傳回

適用於