AssociationAttribute.DeleteOnNull 属性
定义
当指定其外键成员均不可以为 null 的一对一关联时,如果该关联设置为 null,则删除对象。When placed on a 1:1 association whose foreign key members are all non-nullable, deletes the object when the association is set to null.
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 可删除对象。Setting to True deletes the object. 默认值是 False。The default value is False.