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

https://github.com/aimenux/entityframeworkcorecosmosdemo

Using entity framework core to make CRUD operations on CosmosDb
https://github.com/aimenux/entityframeworkcorecosmosdemo

consoleapp cosmosdb entityframeworkcore netcore3 vs19

Last synced: 3 months ago
JSON representation

Using entity framework core to make CRUD operations on CosmosDb

Awesome Lists containing this project

README

          

![.NET Core](https://github.com/aimenux/EntityFrameworkCoreCosmosDemo/workflows/.NET%20Core/badge.svg)
# EntityFrameworkCoreCosmosDemo
```
Using entity framework core to make CRUD operations on CosmosDb
```

I m using [EF Core CosmosDb Provider](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Cosmos) in order to make some dummy CRUD operations.

2 configuration choices are proposed via `DbContextName` field in order to indicate the storing way :
- `CosmosDbContextOne` will store in the same collection both `author` and `book` documents (each one saved on its side).
- `CosmosDbContextTwo` will store in the same collection only `author` documents with `book` documents expanded inside.

**`Tools`** : vs19, net core 3.1, efcore 3.1