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

17 lines
489 B
C#

using MongoDB.Driver;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace EntrustSettle.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);
}
}