using MongoDB.Driver; using System.Collections.Generic; using System.Threading.Tasks; namespace EntrustSettle.Repository.MongoRepository { public interface IMongoBaseRepository where TEntity : class { Task AddAsync(TEntity entity); Task GetAsync(int Id); Task> GetListAsync(); Task GetByObjectIdAsync(string Id); Task> GetListFilterAsync(FilterDefinition filter); } }