mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
21 lines
557 B
C#
21 lines
557 B
C#
using System;
|
|
using System.Linq.Expressions;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FreeSql {
|
|
|
|
public interface IRepository {
|
|
|
|
}
|
|
|
|
public interface IRepository<TEntity> : IReadOnlyRepository<TEntity>, IBasicRepository<TEntity>
|
|
where TEntity : class {
|
|
int Delete(Expression<Func<TEntity, bool>> predicate);
|
|
|
|
Task<int> DeleteAsync(Expression<Func<TEntity, bool>> predicate);
|
|
}
|
|
|
|
public interface IRepository<TEntity, TKey> : IRepository<TEntity>, IReadOnlyRepository<TEntity, TKey>, IBasicRepository<TEntity, TKey>
|
|
where TEntity : class {
|
|
}
|
|
} |