Esempio n. 1
0
        public QueryModel(ScopeParameterDictionary scopeParameters, StringSet scopeTables, bool ignoreFilters)
        {
            if (scopeTables == null)
            {
                this.ScopeTables = new StringSet();
            }
            else
            {
                this.ScopeTables = scopeTables.Clone();
            }

            if (scopeParameters == null)
            {
                this.ScopeParameters = new ScopeParameterDictionary();
            }
            else
            {
                this.ScopeParameters = scopeParameters.Clone();
            }

            this.IgnoreFilters = ignoreFilters;
        }
Esempio n. 2
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();
            }
        }