ModelEmbeddedAttribute.CascadeDelete Property
.NET Standard 2.x
Gets or sets whether to perform the delete operation for the current property (using definitions of the detail model) when the current model is deleting data.
Namespace: SnapObjects.Data
Assembly: SnapObjects.Data.dll
Syntax
public bool CascadeDelete { get; set; }
Property Value
System.Boolean
True
: to perform the delete operation for the current property (using definitions of the detail model) when the current model is deleting data.
False
: not to perform the delete operation for the current property (using definitions of the detail model) when the current model is deleting data.
Remarks
When the ISqlModelMapper.TrackDelete ) method tracks the master model, it also tracks the data of properties in the master model class where the ModelEmbedded attribute is applied and the CascadeDelete
property of ModelEmbedded
attribute is set to true
.
Applies to
.NET Standard
2.x