Esempio n. 1
0
 public void Commit()
 {
     foreach (DbCommand dbCmd in queue)
     {
         DAO.Execute(dbCmd);
     }
     queue.Clear();
 }
Esempio n. 2
0
        public static int InsertNow(object obj, bool returnMax)
        {
            int retorno = 0;

            if (returnMax)
            {
                retorno = Convert.ToInt32(DAO.ExecuteScalar(Factory.getInsertCommand(obj, returnMax)));
            }
            else
            {
                DAO.Execute(Factory.getInsertCommand(obj, returnMax));
            }

            return(retorno);
        }
Esempio n. 3
0
 public int Execute()
 {
     return(DAO.Execute(GetCommand()));
 }
Esempio n. 4
0
 public static void DeleteNow(int id, Type type)
 {
     DAO.Execute(Factory.getDeleteCommand(id, type));
 }
Esempio n. 5
0
 public static void UpdateNow(object obj)
 {
     DAO.Execute(Factory.getUpdateCommand(obj));
 }