Esempio n. 1
0
        IList <T> RunListStatementInternal <T>(StatementMap statement, ISession session, QueryParam[] parameters)
        {
            if ((statement.OperationType == MappedStatementType.ExecuteScalar) || (statement.OperationType == MappedStatementType.Query))
            {
                var runner = new SqlCommandRunner();
                var result = runner.RunList <T>(session, statement.Body.Trim(), null, parameters);
                return(result);
            }

            throw new GoliathDataException(string.Format("Operation {1} not supported on {0}. Use another Run method.", statement.Name, statement.OperationType));
        }
Esempio n. 2
0
 public IList <T> RunList <T>(SqlQueryBody sql, int limit, int offset, params QueryParam[] paramArray)
 {
     return(commandRunner.RunList <T>(this, sql, limit, offset, paramArray));
 }