語言

CoreStrings.RelationshipConceptualNull(Object, Object) 方法

定義

實體類型 '{firstType}' 與 '{secondType}' 之間的關聯已被切斷,但該關係被標記為必要或隱含必要,因為外鍵不可空。 如果應該在切斷必要關聯性時刪除相依/子實體,請將關聯性設定為使用串聯刪除。 如果依賴關係被移至其他主體,請考慮設定「context」。ChangeTracker.DeleteOrphansTiming',更多資訊請參見 https://aka.ms/efcore-docs-changing-relationships 。 可以考慮使用 'DbContextOptionsBuilder.EnableSensitiveDataLogging' 來查看關鍵值。

public static string RelationshipConceptualNull(object? firstType, object? secondType);
public static string RelationshipConceptualNull(object firstType, object secondType);
static member RelationshipConceptualNull : obj * obj -> string
Public Shared Function RelationshipConceptualNull (firstType As Object, secondType As Object) As String

參數

firstType
Object
secondType
Object

傳回

適用於