Use EF Core to transition from SQL Server to Azure Cosmos DB
summary
Migrates an EF Core app from SQL Server to Azure Cosmos DB by switching the provider and EF Core with Cosmos DB provider, changing the model to collocate data so each API’s data lives in a single document. Builds embedded subdocuments (e.g. embedded creator and topWriters, episode summaries like episodeCount and firstAirDate), updates addEpisode to load episodes/writer and populate duplicates, and runs the demo: same JSON returned but with simple Cosmos reads. Notes slower writes and potential consistency tradeoffs.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 0:30API
- 1:02Traditional relational model
- 1:46EF Core with SQL
- 2:48Plan
- 3:04Document Databases
- 3:30Cosmos Provider
- 3:57Model Change
- 5:14Entity Types
- 11:01Recap
- 11:25Summary
- 12:25Thanks
related talks
56mGetting Started with Cosmos DB + EF Core
01h 01mGetting Started with Cosmos DB + EF Core
45mGetting Started with Cosmos DB + EF Core
56mGetting Started with Cosmos DB + EF Core
01h 01mFrom SQL to Azure Cosmos DB
01h 02mFrom SQL to Azure Cosmos DB
01h 01mServerless & Schemaless with Azure Functions and CosmosDB
54mSharing a story of cosmic journey with Cosmos DB
