Centralise BeginTransaction and disable transaction use for now

This commit is contained in:
Dean Herbert
2017-10-23 14:53:13 +09:00
parent c089842adf
commit 4a68dd88cb
3 changed files with 9 additions and 3 deletions

View File

@ -184,7 +184,7 @@ namespace osu.Game.Beatmaps
{
var context = importContext.Value;
using (var transaction = context.Database.BeginTransaction())
using (var transaction = context.BeginTransaction())
{
// create local stores so we can isolate and thread safely, and share a context/transaction.
var iFiles = new FileStore(() => context, storage);
@ -295,7 +295,7 @@ namespace osu.Game.Beatmaps
{
var context = importContext.Value;
using (var transaction = context.Database.BeginTransaction())
using (var transaction = context.BeginTransaction())
{
context.ChangeTracker.AutoDetectChangesEnabled = false;