public ScopeParameterDictionary Clone(ParameterExpression key, IMappingObjectExpression valueOfkey) { ScopeParameterDictionary ret = this.Clone(this.Count + 1); ret[key] = valueOfkey; return(ret); }
public ScopeParameterDictionary Clone(int capacity) { ScopeParameterDictionary ret = new ScopeParameterDictionary(capacity); foreach (var kv in this) { ret.Add(kv.Key, kv.Value); } return(ret); }
public ResultElement(ScopeParameterDictionary scopeParameters, KeyDictionary <string> scopeTables) { this.Orderings = new List <DbOrdering>(); this.GroupSegments = new List <DbExpression>(); if (scopeTables == null) { this.ScopeTables = new KeyDictionary <string>(); } else { this.ScopeTables = scopeTables.Clone(); } if (scopeParameters == null) { this.ScopeParameters = new ScopeParameterDictionary(); } else { this.ScopeParameters = scopeParameters.Clone(); } }