Activity: Controlling the Transaction Manually

Aim

Control the transaction manually and commit it yourself.

Steps for completion

Here's the code:


Go to https://goo.gl/Wk9RUH to access the code.
static void DeleteEmployee()
{
using (var db = new EmployeeDbContext())
using(var transaction = db.Database.BeginTransaction())
...
...
}