using Entity; using System; using System.Collections.Generic; using System.Data.Common; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataBase { public interface IBaseDALwhere T : BaseEntity { #region 查询 /// /// 根据id查询数据 /// /// /// T FindById(int id); /// /// 获取所有数据 /// /// List FindAll(); #endregion #region 增加 /// /// 增加-事务 /// /// /// bool Add(DbTransaction dbTransaction, T t); bool Add(T t); #endregion #region 修改 /// /// 根据id更新数据 /// /// /// bool Update(T t); #endregion #region 删除 /// /// 根据id删除数据 /// /// /// bool Delete(int id); #endregion } }