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 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
傳回
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應