In Entity Framework, we used to have to load an object before we could modify or delete it. In EF 7 we can make changes directly in the database.
Please note the error described by @krccmsitp2884 in the pinned comment.
Source code available at: https://github.com/JasperKent/Ef7-Bul...
Topics include:
New features in .NET 7 and C# 11
Bulk updates
Bulk deletes
Observing generated SQL
PATCH operations
Object tracking
Discards
ExecuteUpdate/ExecuteUpdateAsync
ExecuteDelete/ExecuteDeleteAsync