You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

13 lines
389 B

using MongoDB.Driver;
namespace Tiobon.Core.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);
}