var dataContext = new DataContext();
var customer = new Customer() {FirstName = "Creed"};
dataContext.Add(customer);
dataContext.SaveChanges();
throw new Exception("Oops, something went wrong");
dataContext.Add(new CustomerAddress() { CustomerId = customer.Id, Street = "1725 Slough Avenue" });
dataContext.SaveChanges();
var dataContext = new DataContext();
using (var transaction = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
dataContext.Add(new Customer());
throw new Exception("Oops, something went wrong");
dataContext.Add(new CustomerAddress());