Перейти к содержимому

The CORRECT Way to Handle Value Objects in EF Core

Milan Jovanović

0:00 / 0:00

The CORRECT Way to Handle Value Objects in EF Core

24 919 просмотров · 1 год назад
Milan Jovanović
167 тыс. подписчиков
24 919 просмотров · 1 год назад
Want to master Clean Architecture? Go here: https://bit.ly/3PupkOJ Want to unlock Modular Monoliths? Go here: https://bit.ly/3SXlzSt Get the source code here:   / milanjovanovic   In this video, we dive deep into a common but frustrating issue with Value Objects in Entity Framework Core that's causing developers headaches worldwide. Starting with basic query operations, we'll explore why traditional Value Object implementations can break your LINQ queries and lead to the dreaded InvalidOperationException. You'll learn the step-by-step process of implementing Value Objects correctly, understand the root cause of the problem, and discover multiple solutions, including the recommended EF Core approach. Whether you're building a new application or maintaining legacy code, this guide will help you avoid the pitfalls of Value Object implementation in your Entity Framework Core projects. Value Objects in .NET (DDD Fundamentals) https://www.milanjovanovic.tech/blog/... Check out my courses: https://www.milanjovanovic.tech/courses Read my Blog here: https://www.milanjovanovic.tech/blog Join my weekly .NET newsletter: https://www.milanjovanovic.tech Chapters 0:00 Querying without Value Objects 1:55 Implementing Value Objects 5:10 THE PROBLEM 6:03 Solving this with EF Core 9:48 Alternative solutions