using System; using System.Linq.Expressions; using System.Threading.Tasks; using FreeSql; namespace Admin.Core.Repository { public interface IRepositoryBase : IBaseRepository where TEntity : class { /// /// 获得Dto /// /// /// /// Task GetAsync(TKey id); /// /// 根据条件获取实体 /// /// /// Task GetAsync(Expression> exp); /// /// 根据条件获取Dto /// /// /// Task GetAsync(Expression> exp); /// /// 软删除 /// /// /// Task SoftDeleteAsync(TKey id); /// /// 软删除 /// /// /// Task SoftDeleteAsync(Expression> exp, params string[] name); /// /// 批量删除 /// /// /// Task SoftDeleteAsync(TKey[] id); } public interface IRepositoryBase : IRepositoryBase where TEntity : class { } }