Entity Framework Core v3
from SQL to NoSQL
Andrea Tosato, Microsoft MVP
Marco Minerva, Microsoft MVP
https://about.me/marcominerva
Sponsors
Our use case
• A database to manage students, courses and exams
• Each Student can take N exams
• Each Course can have N exams
Entity Framework Core
with SQL Server
Entity Framework Core SQL Server Provider
• Entity Configuration
• Configure DbContext
• Migrations
• Include
• Value Converters
• Owned Entity
• Query Filter
• Native Client
• Retry
• Transactions
Database Schema
Demo
Entity Framework Core with SQL Server
Entity Framework Core
with Cosmos DB
Entity Framework Core Core Cosmos Provider
• Entity Configuration
• Configure DbContext
• Migrations
• Include
• Value Converters
• Owned Entity
• Query Filter
• Native Client
• Retry
• Transactions
Demo
Entity Framework Core with Cosmos DB
Entity Framework Core updates in .NET 5
• SQL Server
• Many-to-Many “implicit” support
• Table-per-Type (TPT) inheritance mapping
• Filtered Include
• https://github.com/dotnet/efcore/issues/19549
• Cosmos
• https://github.com/dotnet/efcore/labels/area-cosmos
• https://docs.microsoft.com/en-us/ef/core/what-is-new/ef-core-5.0/plan
References
• https://github.com/andreatosato/Entity-FrameworkCore3-from-SQL-
2-NoSQL
• https://docs.microsoft.com/en-us/ef/core/providers/sql-server
• https://docs.microsoft.com/en-us/ef/core/providers/cosmos
• https://docs.microsoft.com/en-us/ef/core/what-is-new/ef-core-
5.0/plan
Thanks! Questions?
Andrea Tosato, Microsoft MVP
Marco Minerva, Microsoft MVP
https://about.me/marcominerva
andreatosato
@ATosato86
andrea.tosato
marcominerva
@marcominerva
marcominerva

Entity framework core v3 from sql to no sql