https://github.com/thiagobarradas/mongo-crud-dotnet
MongoCRUD base for dotnet applications. Never been so fast to implement with mongo.
https://github.com/thiagobarradas/mongo-crud-dotnet
create crud dotnet dotnet-core dotnet-standard easy filter get high-level mongo mongodb search update upsert
Last synced: 3 months ago
JSON representation
MongoCRUD base for dotnet applications. Never been so fast to implement with mongo.
- Host: GitHub
- URL: https://github.com/thiagobarradas/mongo-crud-dotnet
- Owner: ThiagoBarradas
- License: mit
- Created: 2018-09-04T14:45:02.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-06T21:35:38.000Z (10 months ago)
- Last Synced: 2025-04-07T23:47:45.266Z (3 months ago)
- Topics: create, crud, dotnet, dotnet-core, dotnet-standard, easy, filter, get, high-level, mongo, mongodb, search, update, upsert
- Language: C#
- Size: 73.2 KB
- Stars: 14
- Watchers: 3
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://barradas.visualstudio.com/Contributions/_build/latest?definitionId=19&branchName=develop)
[](https://sonarcloud.io/dashboard?id=ThiagoBarradas_mongo-crud-dotnet)
[](https://sonarcloud.io/dashboard?id=ThiagoBarradas_mongo-crud-dotnet)
[](https://www.nuget.org/packages/Mongo.CRUD/)
[](https://www.nuget.org/packages/Mongo.CRUD/)# 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
```c#public class MyEntity
{
[BsonId]
public string MyId { get; set; }public string SomeProperty { get; set; }
}```
Using MongoCRUD
```c#var document = new MyEntity()
{
MyId = "123",
SomeProperty = "Something"
};IMongoCRUD client = new MongoCRUD("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](.github/CONTRIBUTING.md)## Found something strange or need a new feature?
Open a new Issue following our issue template [ISSUE_TEMPLATE](.github/ISSUE_TEMPLATE.md)## Changelog
See in [nuget version history](https://www.nuget.org/packages/Mongo.CRUD)## 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`
