Пример #1
0
        public ScopeParameterDictionary Clone(ParameterExpression key, IMappingObjectExpression valueOfkey)
        {
            ScopeParameterDictionary ret = this.Clone(this.Count + 1);

            ret[key] = valueOfkey;
            return(ret);
        }
Пример #2
0
        public ScopeParameterDictionary Clone(int capacity)
        {
            ScopeParameterDictionary ret = new ScopeParameterDictionary(capacity);

            foreach (var kv in this)
            {
                ret.Add(kv.Key, kv.Value);
            }

            return(ret);
        }
Пример #3
0
        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();
            }
        }