Transactions in the MongoDB EF Core Provider
- 📅
- 📝 1,350 words
- 🕙 6 minutes
- 📦 Development
- 🏷️ Entity Framework, MongoDB
Database transactions ensure that multi-record (or in our case multi-document) operations either all succeed or all fail together.
This is absolutely critical for data consistency in your applications. EF Core has support for three different types of transactions: implicit, explicit, and ambient.