Exemplo n.º 1
0
 public void Update(ArticleData article)
 {
     Execute(collection => collection.ReplaceOne(IdFilter(article.Id), article));
 }
Exemplo n.º 2
0
 public void Delete(ArticleData article)
 {
     Execute(collection => collection.DeleteOne(IdFilter(article.Id)));
 }
Exemplo n.º 3
0
 public void Insert(ArticleData article)
 {
     Execute(collection => collection.InsertOne(article));
 }