//修改数据 public virtual int Update(T t) { int result = -1; _daoManager.BeginTransaction(); try { result = dao.Update(t); _daoManager.CommitTransaction(); } catch (Exception e) { _daoManager.RollBackTransaction(); System.Diagnostics.Debug.Write(e.Message); } return(result); }
//修改数据 public virtual int Update(T t) { return(dao.Update(t)); }