init
This commit is contained in:
16
DouyinApi.Repository/MongoRepository/IMongoBaseRepository.cs
Normal file
16
DouyinApi.Repository/MongoRepository/IMongoBaseRepository.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using MongoDB.Driver;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DouyinApi.Repository.MongoRepository
|
||||
{
|
||||
|
||||
public interface IMongoBaseRepository<TEntity> where TEntity : class
|
||||
{
|
||||
Task AddAsync(TEntity entity);
|
||||
Task<TEntity> GetAsync(int Id);
|
||||
Task<List<TEntity>> GetListAsync();
|
||||
Task<TEntity> GetByObjectIdAsync(string Id);
|
||||
Task<List<TEntity>> GetListFilterAsync(FilterDefinition<TEntity> filter);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user