Ejemplo n.º 1
0
        public ScopeParameterDictionary Clone(ParameterExpression key, IMappingObjectExpression valueOfkey)
        {
            ScopeParameterDictionary ret = this.Clone(this.Count + 1);

            ret[key] = valueOfkey;
            return(ret);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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();
            }
        }