I was wondering if anyone has a clean way to handle removing and updating documents using FluentMongo?
I am creating a repository layer using FluentMongo; however, not being able to remove or update documents is proving troublesome. Perhaps I missed a way to handle this while maintaining a proper repository pattern?
public interface IRepository : IDisposable
{
IQueryable<T> All<T>() where T : class, new();
void Delete<T>(Expression<Func<T, bool>> expression)
where T : class, new();
void Update<TEntity>(TEntity entity) where TEntity : class, new();
}
Thank you.