語言

RelationalStrings.OptionalDependentWithDependentWithoutIdentifyingProperty 方法

定義

實體類型 '{entityType}' 是可選的依賴項,使用資料表共享並包含其他依賴關係,無需任何非共享屬性來識別該實體是否存在。 如果資料庫中所有可空屬性都包含「空」值,查詢中就不會建立物件實例,導致巢狀依賴物件的值遺失。 新增一個必要屬性,讓其他屬性的實例值為「null」,或將進入的導覽標記為必須建立實例。

public static string OptionalDependentWithDependentWithoutIdentifyingProperty(object? entityType);
static member OptionalDependentWithDependentWithoutIdentifyingProperty : obj -> string
Public Shared Function OptionalDependentWithDependentWithoutIdentifyingProperty (entityType As Object) As String

參數

entityType
Object

傳回

適用於