/// <summary>
        /// Begins a database transaction.
        /// </summary>
        public IDatabaseTransaction BeginDatabaseTransaction()
        {
            // Begin the underlying SQL transaction.
            SqlTransaction sqlTransaction = this.SqlConnection.BeginTransaction(IsolationLevel.Serializable);

            // Return the database transaction.
            DatabaseTransaction databaseTransaction = new DatabaseTransaction(sqlTransaction);
            return databaseTransaction;
        }
        /// <summary>
        /// Begins a database transaction.
        /// </summary>
        public IDatabaseTransaction BeginDatabaseTransaction()
        {
            // Begin the underlying SQL transaction.
            SqlTransaction sqlTransaction = this.SqlConnection.BeginTransaction(IsolationLevel.Serializable);

            // Return the database transaction.
            DatabaseTransaction databaseTransaction = new DatabaseTransaction(sqlTransaction);

            return(databaseTransaction);
        }