Show / Hide Table of Contents

    SetValueAttribute.SetValueAttribute(string source, string target, SetValueStrategy setValueStrategy) Constructor

    .NET Standard 2.x

    Initializes a new instance of the SetValueAttribute class.

    Namespace: SnapObjects.Data

    Assembly: SnapObjects.Data.dll

    Syntax

       public SetValueAttribute(string source,string target,SetValueStrategy setValueStrategy)
          : this(source, target, setValueStrategy, ModelSelector.All)
    

    Parameters

    source System.String

    A property of the model class at the same level.

    Use this format to make reference: $PropertyName, for example, $Id.

    target System.String

    A property of the model class at one level lower.

    Use this format to make reference: $PropertyName, for example, $Id.

    setValueStrategy SnapObjects.Data.SetValueStrategy

    The timing when the value will be set.

    The default is SetValueStrategy.Always which indicates values should always be set for the specified property in the embedded model whenever there is an insert or update operation in the model at the same level.

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon