EF Core 8 Finally Fixes Value Objects
Milan Jovanović
0:00 / 0:00
EF Core 8 Finally Fixes Value Objects
33 583 просмотра · 2 года назад
Milan Jovanović
168 тыс. подписчиков
33 583 просмотра · 2 года назад
☄️ 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
EF Core 8 is coming out soon, and it has an excellent feature inside - complex types. This is intended to fix the use of value objects with EF Core. You no longer need to use owned types to represent value objects. I'll show you how to do this with EF 8 and the new way to implement value objects.
EF Core 8 RC1: Complex types as value objects:
https://devblogs.microsoft.com/dotnet...
Join my weekly .NET newsletter:
https://www.milanjovanovic.tech
Read my Blog here:
https://www.milanjovanovic.tech/blog
Chapters
0:00 What is a Value Object?
1:01 Configuring Value Objects as Owned Types
2:17 Using Complex Types to define Value Objects
3:51 Demo: Using Value Objects as Complex Types
8:38 Querying Complex Types with EF 8
10:57 One thing that doesn't work with Complex Types