diff --git a/osu.Game/Database/OsuDbContext.cs b/osu.Game/Database/OsuDbContext.cs
index 5f4e42ed6b..bd288621e0 100644
--- a/osu.Game/Database/OsuDbContext.cs
+++ b/osu.Game/Database/OsuDbContext.cs
@@ -28,11 +28,19 @@ namespace osu.Game.Database
SQLitePCL.Batteries_V2.Init();
}
+ ///
+ /// Create a new in-memory OsuDbContext instance.
+ ///
+ public OsuDbContext() : this("DataSource=:memory:")
+ {
+ // required for tooling (see https://wildermuth.com/2017/07/06/Program-cs-in-ASP-NET-Core-2-0).
+ }
+
///
/// Create a new OsuDbContext instance.
///
- /// A valid SQLite connection string. If not provided, an in-memory instance will be created.
- public OsuDbContext(string connectionString = "DataSource=:memory:")
+ /// A valid SQLite connection string.
+ public OsuDbContext(string connectionString)
{
this.connectionString = connectionString;
@@ -82,7 +90,7 @@ namespace osu.Game.Database
public void AddProvider(ILoggerProvider provider)
{
- throw new NotImplementedException();
+ // no-op. called by tooling.
}
private class OsuDbLoggerProvider : ILoggerProvider