1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 06:42:54 +08:00

Fix tooling failures

This commit is contained in:
Dean Herbert 2017-10-17 17:52:02 +09:00
parent 0177fcbe5f
commit 3e415e3269

View File

@ -28,11 +28,19 @@ namespace osu.Game.Database
SQLitePCL.Batteries_V2.Init();
}
/// <summary>
/// Create a new in-memory OsuDbContext instance.
/// </summary>
public OsuDbContext() : this("DataSource=:memory:")
{
// required for tooling (see https://wildermuth.com/2017/07/06/Program-cs-in-ASP-NET-Core-2-0).
}
/// <summary>
/// Create a new OsuDbContext instance.
/// </summary>
/// <param name="connectionString">A valid SQLite connection string. If not provided, an in-memory instance will be created.</param>
public OsuDbContext(string connectionString = "DataSource=:memory:")
/// <param name="connectionString">A valid SQLite connection string.</param>
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