using FreeSql; using System.Linq.Expressions; namespace Znyc.CloudCar.IRepository { 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(TKey[] ids); } public interface IRepositoryBase : IRepositoryBase where TEntity : class { } }