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

Do You Know The Fastest Way To Delete Data With EF Core?

Milan Jovanović

0:00 / 0:00

Do You Know The Fastest Way To Delete Data With EF Core?

13 293 просмотра · 3 г. назад
Milan Jovanović
169 тыс. подписчиков
13 293 просмотра · 3 г. назад
☄️ 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   What is the fastest way to delete data with EF Core? The standard approach requires two database requests, but I'll show you two options that only need one. The first uses the Attach method, and the second uses ExecuteDelete (released in EF Core 7). Join my weekly .NET newsletter: https://www.milanjovanovic.tech Read my Blog here: https://www.milanjovanovic.tech/blog Subscribe for more:    / @milanjovanovictech   Chapters 0:00 Approach 1: Load from DB and Remove 4:08 Approach 2: Attach and Remove 7:12 Problem with Attach approach 8:00 Approach 3: ExecuteDelete (EF 7+)