The Old and New Way To Delete Entities With EF Core #shorts

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

In the first case, however, if the id does not exist it generates an exception, right?

Totti
Автор

Which approach should I use if I want to know if the delete process was successful?

ErickOrlando
Автор

What If there are dependent table based on this table...How to remove it completely from all related tables?

himanshuraj
Автор

Great for sure, but I must ask, does it also delete the entity from Dbcontext?, because I remember that the new ExecuteUpdate and ExecuteDelete will not be tracked by ef, meaning unlike SaveChanges the entities in db context will not be in sync with the database.

PeacefulMindss
Автор

What if I need to trigger a domain event on deletion?

gwolf