mongo-crud-dotnet
mongo-crud-dotnet copied to clipboard
MongoCRUD base for dotnet applications. Never been so fast to implement with mongo.
Mongo.CRUD
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
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);
Install via NuGet
PM> Install-Package Mongo.CRUD
How to use
:construction:
How can I contribute?
Please, refer to CONTRIBUTING
Found something strange or need a new feature?
Open a new Issue following our issue template ISSUE_TEMPLATE
Changelog
See in nuget version history
Did you like it? Please, make a donate :)
if you liked this project, please make a contribution and help to keep this and other initiatives, send me some Satochis.
BTC Wallet: 1G535x1rYdMo9CNdTGK3eG6XJddBHdaqfX