Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 1 day 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-06T21:35:38.000Z (2 months ago)
- Last Synced: 2024-10-06T22:35:22.898Z (about 1 month 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: 15
- Watchers: 4
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://barradas.visualstudio.com/Contributions/_apis/build/status/NugetPackage/Mongo%20CRUD?branchName=develop)](https://barradas.visualstudio.com/Contributions/_build/latest?definitionId=19&branchName=develop)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ThiagoBarradas_mongo-crud-dotnet&metric=alert_status)](https://sonarcloud.io/dashboard?id=ThiagoBarradas_mongo-crud-dotnet)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=ThiagoBarradas_mongo-crud-dotnet&metric=coverage)](https://sonarcloud.io/dashboard?id=ThiagoBarradas_mongo-crud-dotnet)
[![NuGet Downloads](https://img.shields.io/nuget/dt/Mongo.CRUD.svg)](https://www.nuget.org/packages/Mongo.CRUD/)
[![NuGet Version](https://img.shields.io/nuget/v/Mongo.CRUD.svg)](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`
![1G535x1rYdMo9CNdTGK3eG6XJddBHdaqfX](https://i.imgur.com/mN7ueoE.png)