MongoCRUD is a high level library to make easy basic operations like create, update, update partial by query, upsert, delete, delete by query, get, search with paging and sorting, and filter buiders.
Sample Entity Class
public class MyEntity
{
[BsonId]
public string MyId { get; set; }
public string SomeProperty { get; set; }
}
Using MongoCRUD
var document = new MyEntity()
{
MyId = "123",
SomeProperty = "Something"
};
IMongoCRUD<MyEntity> client = new MongoCRUD<MyEntity>("mongodb://localhost", "MyDatabase");
client.Create(document);
document.SomeProperty = "Something2";
client.Update(document);
client.Delete(document);
PM> Install-Package Mongo.CRUD
🚧
Please, refer to CONTRIBUTING
Open a new Issue following our issue template ISSUE_TEMPLATE
See in nuget version history
if you liked this project, please make a contribution and help to keep this and other initiatives, send me some Satochis.
BTC Wallet: 1G535x1rYdMo9CNdTGK3eG6XJddBHdaqfX