FluentMongo を使用してドキュメントの削除と更新を処理するクリーンな方法を誰かが持っているかどうか疑問に思っていましたか?
FluentMongo を使用してリポジトリ レイヤーを作成しています。ただし、ドキュメントを削除または更新できないことは厄介です。おそらく、適切なリポジトリ パターンを維持しながら、これを処理する方法を逃したのでしょうか?
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();
}
ありがとうございました。