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
- Host: GitHub
- URL: https://github.com/aimenux/entityframeworkcorecosmosdemo
- Owner: aimenux
- Created: 2020-04-13T23:55:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-14T23:02:13.000Z (almost 6 years ago)
- Last Synced: 2025-02-27T01:54:33.704Z (11 months ago)
- Topics: consoleapp, cosmosdb, entityframeworkcore, netcore3, vs19
- Language: C#
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# 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