Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)