Using entity framework core to make CRUD operations on CosmosDb
I m using EF Core CosmosDb Provider 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 bothauthor
andbook
documents (each one saved on its side).CosmosDbContextTwo
will store in the same collection onlyauthor
documents withbook
documents expanded inside.
Tools
: vs19, net core 3.1, efcore 3.1