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