Esempio n. 1
0
        private Task <TReader> ExecuteReaderAsync(DbQueryStatement queryStatement, CancellationToken ct)
        {
            var model   = queryStatement.Model;
            var command = GetQueryCommand(queryStatement);

            return(ExecuteReaderAsync(model, command, ct));
        }
Esempio n. 2
0
        internal DbUnionStatement(Model model, DbQueryStatement query1, DbQueryStatement query2, DbUnionKind kind)
            : base(model)
        {
            Debug.Assert(query1 != null);
            Debug.Assert(query2 != null);

            Query1 = query1;
            Query2 = query2;
            Kind   = kind;
        }
Esempio n. 3
0
 /// <summary>
 /// Gets the command for database query statement.
 /// </summary>
 /// <param name="queryStatement">The query statement.</param>
 /// <returns>The command of query statement.</returns>
 protected abstract TCommand GetQueryCommand(DbQueryStatement queryStatement);
Esempio n. 4
0
 /// <summary>
 /// Gets the native SQL string for query statement.
 /// </summary>
 /// <param name="query">The query statement.</param>
 /// <returns>The native SQL string.</returns>
 protected internal abstract string GetSqlString(DbQueryStatement query);
Esempio n. 5
0
 internal DbQuery <T> PerformCreateQuery <T>(T _, DbQueryStatement queryStatement)
     where T : Model, new()
 {
     return(new DbQuery <T>(_, this, queryStatement));
 }
Esempio n. 6
0
 internal DbQuery <T> PerformCreateQuery <T>(T _, DbQueryStatement queryStatement)
     where T : class, IEntity, new()
 {
     return(new DbQuery <T>(_, this, queryStatement));
 }