AssociationAttribute.DeleteOnNull 屬性

定義

當置於一個 1:1 關聯且所有外鍵成員皆非可空時,當關聯設為空時,會刪除該物件。

public:
 property bool DeleteOnNull { bool get(); void set(bool value); };
public bool DeleteOnNull { get; set; }
member this.DeleteOnNull : bool with get, set
Public Property DeleteOnNull As Boolean

屬性值

設定為 True 就是刪除該物件。 預設值為 False

適用於