private void CreateCustomer() { var c = new Customer { Firstname = "John", Lastname = "Doe", Inserted = DateTime.Now }; customerRepository.Add(c); customerRepository.UnitOfWork.SaveChanges(); }
private void CreateCustomer() { customerRepository.UnitOfWork.BeginTransaction(); var c = new Customer { Firstname = "John", Lastname = "Doe", Inserted = DateTime.Now }; customerRepository.Add(c); customerRepository.UnitOfWork.CommitTransaction(); }