RelationalStrings.OptionalDependentWithDependentWithoutIdentifyingProperty 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
實體類型 '{entityType}' 是可選的依賴項,使用資料表共享並包含其他依賴關係,無需任何非共享屬性來識別該實體是否存在。 如果資料庫中所有可空屬性都包含「空」值,查詢中就不會建立物件實例,導致巢狀依賴物件的值遺失。 新增一個必要屬性,讓其他屬性的實例值為「null」,或將進入的導覽標記為必須建立實例。
public static string OptionalDependentWithDependentWithoutIdentifyingProperty(object? entityType);
static member OptionalDependentWithDependentWithoutIdentifyingProperty : obj -> string
Public Shared Function OptionalDependentWithDependentWithoutIdentifyingProperty (entityType As Object) As String
參數
- entityType
- Object