Пример #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);
 }
Пример #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;
 }
Пример #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));
 }
Пример #4
0
 public WhenNotMatchedByTarget WithMapping(MergeUpdateMapping <TTable> mapping)
 {
     this.AssertNotDefault();
     return(new WhenNotMatchedByTarget(false, this.And, mapping, this.ExcludeKeys, this.Exclude));
 }
Пример #5
0
 public WhenMatched(bool isDelete, ExprBoolean?and, MergeUpdateMapping <TTable>?mapping)
 {
     this.IsDelete = isDelete;
     this.Mapping  = mapping;
     this.And      = and;
 }
Пример #6
0
 public IMergeDataBuilderNotMatchSource <TTable> AlsoInsert(MergeUpdateMapping <TTable> mapping)
 {
     this._whenNotMatchedByTarget = this.AssertNotMatchedByTargetIsSet()
                                    .WithMapping(mapping.AssertArgumentNotNull(nameof(mapping)));
     return(this);
 }
Пример #7
0
 public IUpdateDataBuilderFinal AlsoSet(MergeUpdateMapping <TTable> mapping)
 {
     this._alsoSet = mapping.AssertArgumentNotNull(nameof(mapping));
     return(this);
 }