Esempio n. 1
0
        public SQLiteDataReader ExecuteReader(CommandType commandType, string commandText, params IDbDataParameter[] commandParameters)
        {
            try
            {
                this.InitSqliteDB();

                return(SqlHelperDB.ExecuteReader(this.sqliteConn, commandType, commandText, commandParameters));
            }
            catch (Exception e)
            {
                //  this.m_haserror = true;
                throw new System.Exception(e.Message, e.InnerException);
            }
        }
Esempio n. 2
0
        public SQLiteDataReader ExecuteReader(string spName, params IDbDataParameter[] parameterValues)
        {
            try
            {
                this.InitSqliteDB();
                //return Data.SqlHelperDB.ExecuteReader(this.m_transaction,spName,parameterValues);

                return(SqlHelperDB.ExecuteReader(this.sqliteConn, CommandType.StoredProcedure, spName, parameterValues));
            }
            catch (Exception e)
            {
                //  this.m_haserror = true;
                throw new System.Exception(e.Message, e.InnerException);
            }
        }