Exemple #1
0
        public T Query <T>(string statementName, IDataAccessSession session, List <StatementCondition> conditions, params object[] parameters) where T : new()
        {
            Sql         sql  = DaoConfig.GetSql(statementName);
            ExecuteUnit unit = new ExecuteUnit(this, sql, session, null, parameters);

            return(Query <T>(unit));
        }
Exemple #2
0
        public T Query <T>(string statementName, IDataAccessSession session, List <StatementCondition> conditions, Hashtable paramMap) where T : new()
        {
            Sql         sql  = DaoConfig.GetSql(statementName);
            ExecuteUnit unit = new ExecuteUnit(this, sql, session, conditions, paramMap);

            return(Query <T>(unit));
        }
Exemple #3
0
        public DataSet ExecuteDataset(string statementName, IDataAccessSession session, List <StatementCondition> conditions, Hashtable paramMap)
        {
            Sql         sql  = DaoConfig.GetSql(statementName);
            ExecuteUnit unit = new ExecuteUnit(this, sql, session, conditions, paramMap);

            return(ExecuteDataset(unit));
        }
Exemple #4
0
        public DataSet ExecuteDataset(string statementName, IDataAccessSession session, List <StatementCondition> conditions, int startIndex, int endIndex, out int totalCount, Hashtable paramMap)
        {
            Sql         sql  = DaoConfig.GetSql(statementName);
            ExecuteUnit unit = new ExecuteUnit(this, sql, session, conditions, paramMap);

            return(ExecuteDataset(unit, startIndex, endIndex, out totalCount));
        }
Exemple #5
0
        public DataTable ExecuteDatatable(string statementName, IDataAccessSession session, List <StatementCondition> conditions, int startIndex, int endIndex, out int totalCount, IModel model)
        {
            Sql         sql  = DaoConfig.GetSql(statementName);
            ExecuteUnit unit = new ExecuteUnit(this, sql, session, conditions, model);

            return(ExecuteDatatable(unit, startIndex, endIndex, out totalCount));
        }
Exemple #6
0
        public DataTable ExecuteDatatable(string statementName, IDataAccessSession session, List <StatementCondition> conditions, IModel model)
        {
            Sql         sql  = DaoConfig.GetSql(statementName);
            ExecuteUnit unit = new ExecuteUnit(this, sql, session, conditions, model);

            return(ExecuteDatatable(unit));
        }
Exemple #7
0
        public int ExecuteNonQuery(string statementName, IDataAccessSession session, List <StatementCondition> conditions, params object[] parameters)
        {
            Sql         sql  = DaoConfig.GetSql(statementName);
            ExecuteUnit unit = new ExecuteUnit(this, sql, session, conditions, parameters);

            return(ExecuteNonQuery(unit));
        }
Exemple #8
0
        public PagerModelCollection <T> QueryCollection <T>(string statementName, IDataAccessSession session, List <StatementCondition> conditions, int startIndex, int endIndex, Hashtable paramMap) where T : new()
        {
            Sql         sql  = DaoConfig.GetSql(statementName);
            ExecuteUnit unit = new ExecuteUnit(this, sql, session, conditions, paramMap);

            return(QueryCollection <T>(unit, startIndex, endIndex));
        }
Exemple #9
0
        public ModelCollection <T> QueryCollection <T>(string statementName, IDataAccessSession session, List <StatementCondition> conditions, IModel model) where T : new()
        {
            Sql         sql  = DaoConfig.GetSql(statementName);
            ExecuteUnit unit = new ExecuteUnit(this, sql, session, conditions, model);

            return(QueryCollection <T>(unit));
        }