Esempio n. 1
0
 public IMergeDataBuilderNotMatchTarget <TTable> AlsoSet(MergeUpdateMapping <TTable> mapping)
 {
     this._whenMatched = this._whenMatched
                         .AssertNotNull("WhenMatched is expected to be set")
                         .WithMapping(mapping.AssertArgumentNotNull(nameof(mapping)));
     return(this);
 }
Esempio n. 2
0
 public WhenNotMatchedByTarget(bool isDefaultValues, ExprBoolean?and, MergeUpdateMapping <TTable>?mapping, bool excludeKeys, IReadOnlyList <ExprColumnName>?exclude)
 {
     this.IsDefaultValues = isDefaultValues;
     this.Mapping         = mapping;
     this.ExcludeKeys     = excludeKeys;
     this.Exclude         = exclude;
     this.And             = and;
 }
Esempio n. 3
0
 public WhenMatched WithMapping(MergeUpdateMapping <TTable> mapping)
 {
     if (this.IsDelete)
     {
         throw new SqExpressException("Additional settings are not allowed in case of deletion");
     }
     return(new WhenMatched(false, this.And, mapping));
 }
Esempio n. 4
0
 public WhenNotMatchedByTarget WithMapping(MergeUpdateMapping <TTable> mapping)
 {
     this.AssertNotDefault();
     return(new WhenNotMatchedByTarget(false, this.And, mapping, this.ExcludeKeys, this.Exclude));
 }
Esempio n. 5
0
 public WhenMatched(bool isDelete, ExprBoolean?and, MergeUpdateMapping <TTable>?mapping)
 {
     this.IsDelete = isDelete;
     this.Mapping  = mapping;
     this.And      = and;
 }
Esempio n. 6
0
 public IMergeDataBuilderNotMatchSource <TTable> AlsoInsert(MergeUpdateMapping <TTable> mapping)
 {
     this._whenNotMatchedByTarget = this.AssertNotMatchedByTargetIsSet()
                                    .WithMapping(mapping.AssertArgumentNotNull(nameof(mapping)));
     return(this);
 }
Esempio n. 7
0
 public IUpdateDataBuilderFinal AlsoSet(MergeUpdateMapping <TTable> mapping)
 {
     this._alsoSet = mapping.AssertArgumentNotNull(nameof(mapping));
     return(this);
 }