The Better Way to Configure Entity Framework Core

Опубликовано: 29 Сентябрь 2024
на канале: Milan Jovanović
51,525
1.8k

☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt
📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ
🚀 Support me on Patreon to access the source code:   / milanjovanovic  

The way most people configure Entity Framework (EF) leaves little room for flexibility. In this video, I will show you how you can set up EF so that you can provide different configurations based on environment variables. This setup will give you much greater control over your deployment process.

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Subscribe for more:
https://www.youtube.com/c/MilanJovano...

Chapters
0:00 Introduction
0:06 What we're working with
1:48 Expanding EF configuration
3:14 The better way to configure EF
4:20 Options pattern
7:50 EF configuration with Options pattern
9:55 Outro