12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- using FreeSql;
- using System;
- using System.Linq.Expressions;
- using System.Threading.Tasks;
- namespace Admin.Core.Repository
- {
- public interface IRepositoryBase<TEntity, TKey> : IBaseRepository<TEntity, TKey> where TEntity : class
- {
-
-
-
-
-
-
- Task<TDto> GetAsync<TDto>(TKey id);
-
-
-
-
-
- Task<TDto> GetAsync<TDto>(Expression<Func<TEntity, bool>> exp);
-
-
-
-
-
- Task<TEntity> GetAsync(Expression<Func<TEntity, bool>> exp);
-
-
-
-
-
- Task<bool> SoftDeleteAsync(TKey id);
-
-
-
-
-
- Task<bool> SoftDeleteAsync(TKey[] ids);
-
-
-
-
-
- Task<bool> SoftDeleteAsync(Expression<Func<TEntity, bool>> exp, params string[] disableGlobalFilterNames);
-
-
-
-
-
-
- Task<bool> DeleteRecursiveAsync(Expression<Func<TEntity, bool>> exp, params string[] disableGlobalFilterNames);
-
-
-
-
-
-
- Task<bool> SoftDeleteRecursiveAsync(Expression<Func<TEntity, bool>> exp, params string[] disableGlobalFilterNames);
- }
- public interface IRepositoryBase<TEntity> : IRepositoryBase<TEntity, long> where TEntity : class
- {
- }
- }
|