Esempio n. 1
0
        internal QueryJoin([NotNull] XQuery source, IList <IJoin> joins)
        {
            Debug.Assert(source != null);

            Copy(source);
            _joins   = joins;
            JoinImpl = this;
        }
Esempio n. 2
0
        public From([NotNull] XQuery query, IDataSource impl)
        {
            Debug.Assert(query != null);

            Copy(query);

            FromImpl = impl as QueryDataSource;
            Database = (impl as DatabaseSource)?.Database;
        }
 internal QueryResultSet(XQuery query, [NotNull] ThreadSafety threadSafety, C4QueryEnumerator *e,
                         IDictionary <string, int> columnNames)
 {
     _query        = query;
     _c4Enum       = e;
     ColumnNames   = columnNames;
     _threadSafety = threadSafety;
     _context      = new QueryResultContext(query?.Database, e);
 }
Esempio n. 4
0
        internal Having([NotNull] XQuery source, IExpression expression)
        {
            Debug.Assert(source != null);

            Copy(source);

            _expression = expression;
            HavingImpl  = this;
        }
Esempio n. 5
0
 protected void Copy(XQuery source)
 {
     Database    = source.Database;
     SelectImpl  = source.SelectImpl;
     Distinct    = source.Distinct;
     FromImpl    = source.FromImpl;
     WhereImpl   = source.WhereImpl;
     OrderByImpl = source.OrderByImpl;
     JoinImpl    = source.JoinImpl;
     GroupByImpl = source.GroupByImpl;
     HavingImpl  = source.HavingImpl;
     LimitValue  = source.LimitValue;
     SkipValue   = source.SkipValue;
 }
Esempio n. 6
0
 public Where(XQuery query, IExpression expression)
 {
     Copy(query);
     WhereImpl = expression as QueryExpression;
 }
Esempio n. 7
0
 internal QueryOrderBy(XQuery query, IList <IOrdering> orderBy)
     : this(orderBy)
 {
     Copy(query);
     OrderByImpl = this;
 }
 internal QueryGroupBy(XQuery query, IList <IExpression> expressions)
     : this(expressions)
 {
     Copy(query);
     GroupByImpl = this;
 }