Show / Hide Table of Contents

    ModelEmbeddedAttribute.CascadeCreate Property

    .NET Standard 2.x

    Gets or sets whether to perform the insert operation for the current property (using definitions of the detail model) when the current model is inserting data.

    Namespace: SnapObjects.Data

    Assembly: SnapObjects.Data.dll

    Syntax

       public bool CascadeCreate { get; set; }
    

    Property Value

    System.Boolean

    True: to perform the insert operation for the current property (using definitions of the detail model) when the current model is inserting data.

    False: not to perform the insert operation for the current property (using definitions of the detail model) when the current model is inserting data.

    Remarks

    When the ISqlModelMapper.TrackCreate 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 CascadeCreate property of ModelEmbedded attribute is set to true.

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon