예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }