Example #1
0
        public SqlServerStorageTransaction(SqlServerStorageConnection connection)
        {
            var options = connection.Options;

            _schema = options.Schema;

            _dbConnection = new SqlConnection(options.ConnectionString);
            _dbConnection.Open();
        }
Example #2
0
        public SqlServerStorageTransaction(SqlServerStorageConnection connection)
        {
            var options = connection.Options;

            _schema = options.Schema;

            _dbConnection = new SqlConnection(options.ConnectionString);
            _dbConnection.Open();
            _dbTransaction = _dbConnection.BeginTransaction(IsolationLevel.ReadCommitted);
        }