DbContext
is an abstraction over the database. It provides a simple API for loading or saving data, giving you operations like SaveChanges()
.
DbSet
represents a table in the database.
https://stackoverflow.com/questions/2519866/how-do-i-delete-multiple-rows-in-entity-framework-without-foreach
→ Call delete in a loop.