mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-12-14 07:15:47 +08:00
add examples repository_01
This commit is contained in:
21
FreeSql.Repository/IRepository.cs
Normal file
21
FreeSql.Repository/IRepository.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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 {
|
||||
void Delete(Expression<Func<TEntity, bool>> predicate);
|
||||
|
||||
Task DeleteAsync(Expression<Func<TEntity, bool>> predicate);
|
||||
}
|
||||
|
||||
public interface IRepository<TEntity, TKey> : IRepository<TEntity>, IReadOnlyRepository<TEntity, TKey>, IBasicRepository<TEntity, TKey>
|
||||
where TEntity : class {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user