public void Commit() { foreach (DbCommand dbCmd in queue) { DAO.Execute(dbCmd); } queue.Clear(); }
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); }
public int Execute() { return(DAO.Execute(GetCommand())); }
public static void DeleteNow(int id, Type type) { DAO.Execute(Factory.getDeleteCommand(id, type)); }
public static void UpdateNow(object obj) { DAO.Execute(Factory.getUpdateCommand(obj)); }