語言

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

定義

無法判斷由導航 '{entityType} 所代表的關係。{navigation}' 型別為 '{propertyType}''。 你可以手動設定這個關係,或是用 '[NotMapped]' 屬性,或在 'OnModelCreating' 裡用「EntityTypeBuilder.Ignore' 忽略這個屬性。

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

參數

entityType
Object
navigation
Object
propertyType
Object

傳回

適用於