Exemple #1
0
 public static Int32 ExecuteNonQuery(string ProcedureName, ClsDataAccess.Struct_Parameters[] ProcedureParameters)
 {
     ClsDataAccess Da = new ClsDataAccess();
     try
     {
         Da.Connect();
         return Da.ExecuteNonQuery(ProcedureName, ProcedureParameters);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     finally
     {
         Da.Close();
     }
 }
Exemple #2
0
 public static Int32 ExecuteNonQuery(string Query)
 {
     ClsDataAccess Da = new ClsDataAccess();
     try
     {
         Da.Connect();
         return Da.ExecuteNonQuery(Query);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     finally
     {
         Da.Close();
     }
 }