/// <summary>
 /// Create a <see cref="DbTransactionState"/>
 /// </summary>
 /// <param name="database">
 /// The database.
 /// </param>
 /// <returns>
 /// The <see cref="DbTransactionState"/>.
 /// </returns>
 public static DbTransactionState Create(Database database)
 {
     var connection = database.CreateConnection();
     connection.Open();
     var transaction = connection.BeginTransaction();
     return new DbTransactionState(transaction, database);
 }