CoreStrings.PropertyNotMapped(Object, Object, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
'{propertyType}' 屬性 '{entityType}。{property}' 無法映射,因為資料庫提供者不支援此類型。 考慮使用值轉換器將屬性值轉換成資料庫支援的類型。 如需相關資訊,請參閱 https://aka.ms/efcore-docs-value-converters 。 或者,你可以使用 '[NotMapped]' 屬性或在 'OnModelCreating' 中使用「EntityTypeBuilder.Ignore' 來排除該屬性。
public static string PropertyNotMapped(object? propertyType, object? entityType, object? property);
public static string PropertyNotMapped(object entityType, object property, object propertyType);
public static string PropertyNotMapped(object? entityType, object? property, object? propertyType);
static member PropertyNotMapped : obj * obj * obj -> string
static member PropertyNotMapped : obj * obj * obj -> string
Public Shared Function PropertyNotMapped (propertyType As Object, entityType As Object, property As Object) As String
Public Shared Function PropertyNotMapped (entityType As Object, property As Object, propertyType As Object) As String
參數
- propertyTypeentityType
- Object
- entityTypeproperty
- Object
- propertypropertyType
- Object