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

            ret[key] = valueOfkey;
            return(ret);
        }
Exemplo 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);
        }
Exemplo n.º 3
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;
        }
Exemplo n.º 4
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();
            }
        }
Exemplo n.º 5
0
        public static IMappingObjectExpression Resolve(LambdaExpression selector, ScopeParameterDictionary scopeParameters, KeyDictionary <string> scopeTables)
        {
            SelectorResolver resolver = new SelectorResolver(scopeParameters, scopeTables);

            return(resolver.Visit(selector));
        }
Exemplo n.º 6
0
 SelectorResolver(ScopeParameterDictionary scopeParameters, KeyDictionary <string> scopeTables)
 {
     this._scopeParameters = scopeParameters;
     this._scopeTables     = scopeTables;
 }
Exemplo n.º 7
0
 SelectorExpressionVisitor(ScopeParameterDictionary scopeParameters, KeyDictionary <string> scopeTables)
 {
     this._scopeParameters = scopeParameters;
     this._scopeTables     = scopeTables;
 }
Exemplo n.º 8
0
        public static IObjectModel Resolve(LambdaExpression selector, ScopeParameterDictionary scopeParameters, StringSet scopeTables)
        {
            SelectorResolver resolver = new SelectorResolver(scopeParameters, scopeTables);

            return(resolver.Visit(selector));
        }
Exemplo n.º 9
0
 SelectorResolver(ScopeParameterDictionary scopeParameters, StringSet scopeTables)
 {
     this._scopeParameters = scopeParameters;
     this._scopeTables     = scopeTables;
 }
Exemplo n.º 10
0
 public QueryModel(ScopeParameterDictionary scopeParameters, StringSet scopeTables) : this(scopeParameters, scopeTables, false)
 {
 }