Explicitly specify SingleQuery behavior

This commit is contained in:
Roman Kapustin 2021-03-14 21:43:27 +03:00
parent 61d5a6cc57
commit 28ef64b62a

View File

@ -3,7 +3,6 @@
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.Extensions.Logging;
using osu.Framework.Logging;
using osu.Framework.Statistics;
@ -111,8 +110,7 @@ namespace osu.Game.Database
{
base.OnConfiguring(optionsBuilder);
optionsBuilder
.UseSqlite(connectionString, sqliteOptions => sqliteOptions.CommandTimeout(10))
.ConfigureWarnings(w => w.Ignore(RelationalEventId.MultipleCollectionIncludeWarning))
.UseSqlite(connectionString, sqliteOptions => sqliteOptions.CommandTimeout(10).UseQuerySplittingBehavior(QuerySplittingBehavior.SingleQuery))
.UseLoggerFactory(logger.Value);
}