mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Fix tooling failures
This commit is contained in:
parent
0177fcbe5f
commit
3e415e3269
@ -28,11 +28,19 @@ namespace osu.Game.Database
|
|||||||
SQLitePCL.Batteries_V2.Init();
|
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>
|
/// <summary>
|
||||||
/// Create a new OsuDbContext instance.
|
/// Create a new OsuDbContext instance.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="connectionString">A valid SQLite connection string. If not provided, an in-memory instance will be created.</param>
|
/// <param name="connectionString">A valid SQLite connection string.</param>
|
||||||
public OsuDbContext(string connectionString = "DataSource=:memory:")
|
public OsuDbContext(string connectionString)
|
||||||
{
|
{
|
||||||
this.connectionString = connectionString;
|
this.connectionString = connectionString;
|
||||||
|
|
||||||
@ -82,7 +90,7 @@ namespace osu.Game.Database
|
|||||||
|
|
||||||
public void AddProvider(ILoggerProvider provider)
|
public void AddProvider(ILoggerProvider provider)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
// no-op. called by tooling.
|
||||||
}
|
}
|
||||||
|
|
||||||
private class OsuDbLoggerProvider : ILoggerProvider
|
private class OsuDbLoggerProvider : ILoggerProvider
|
||||||
|
Loading…
x
Reference in New Issue
Block a user