public object ExecuteScalar(string spName, params IDbDataParameter[] parameterValues) { try { this.InitSqliteDB(); return(SqlHelperDB.ExecuteScalar(this.sqliteConn, CommandType.StoredProcedure, spName, parameterValues)); } catch (Exception e) { //this.m_haserror = true; throw new System.Exception(e.Message, e.InnerException); } }
public object ExecuteScalar(CommandType commandType, string commandText, params IDbDataParameter[] commandParameters) { try { this.InitSqliteDB(); return(SqlHelperDB.ExecuteScalar(this.sqliteConn, commandType, commandText, commandParameters)); } catch (Exception e) { //this.m_haserror = true; throw new System.Exception(e.Message, e.InnerException); } }