The unit of work pattern wraps a set of database operations in a transaction.
'Get the current instance of the helper
Dim db As IDataHelper = DataHelper.SessionFactory()
Using
TempUnitOfWork As UnitOfWork = New UnitOfWork(db)"INSERT INTO Customers (FirstName,LastName) VALUES ('John','Smith')")db.ExecuteNonQuery(
db.ExecuteNonQuery(
"INSERT INTO Customers (FirstName,LastName) VALUES ('John','Doe')")End
Using