mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 05:53:10 +08:00
Fix some file headers and unused files
This commit is contained in:
parent
298349ba77
commit
a232033469
@ -1,8 +0,0 @@
|
|||||||
using Microsoft.EntityFrameworkCore;
|
|
||||||
|
|
||||||
namespace osu.Game.Database
|
|
||||||
{
|
|
||||||
public abstract class DbContextBase:DbContext
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,4 +1,7 @@
|
|||||||
namespace osu.Game.Database
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
namespace osu.Game.Database
|
||||||
{
|
{
|
||||||
public interface IPopulate
|
public interface IPopulate
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
using System;
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using System;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using osu.Framework.Logging;
|
using osu.Framework.Logging;
|
||||||
@ -12,6 +15,11 @@ namespace osu.Game.Database
|
|||||||
{
|
{
|
||||||
public class OsuDbContext : DbContext
|
public class OsuDbContext : DbContext
|
||||||
{
|
{
|
||||||
|
public DbSet<BeatmapInfo> BeatmapInfo { get; set; }
|
||||||
|
public DbSet<BeatmapSetInfo> BeatmapSetInfo { get; set; }
|
||||||
|
public DbSet<DatabasedKeyBinding> DatabasedKeyBinding { get; set; }
|
||||||
|
public DbSet<FileInfo> FileInfo { get; set; }
|
||||||
|
public DbSet<RulesetInfo> RulesetInfo { get; set; }
|
||||||
private readonly string connectionString;
|
private readonly string connectionString;
|
||||||
|
|
||||||
public OsuDbContext()
|
public OsuDbContext()
|
||||||
@ -24,12 +32,6 @@ namespace osu.Game.Database
|
|||||||
this.connectionString = connectionString;
|
this.connectionString = connectionString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public DbSet<BeatmapInfo> BeatmapInfo { get; set; }
|
|
||||||
public DbSet<BeatmapSetInfo> BeatmapSetInfo { get; set; }
|
|
||||||
public DbSet<DatabasedKeyBinding> DatabasedKeyBinding { get; set; }
|
|
||||||
public DbSet<FileInfo> FileInfo { get; set; }
|
|
||||||
public DbSet<RulesetInfo> RulesetInfo { get; set; }
|
|
||||||
|
|
||||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||||
{
|
{
|
||||||
base.OnConfiguring(optionsBuilder);
|
base.OnConfiguring(optionsBuilder);
|
||||||
@ -53,20 +55,28 @@ namespace osu.Game.Database
|
|||||||
|
|
||||||
private class OsuDbLoggerFactory : ILoggerFactory
|
private class OsuDbLoggerFactory : ILoggerFactory
|
||||||
{
|
{
|
||||||
|
#region Disposal
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
public ILogger CreateLogger(string categoryName) => new OsuDbLogger();
|
public ILogger CreateLogger(string categoryName) => new OsuDbLogger();
|
||||||
|
|
||||||
public void AddProvider(ILoggerProvider provider) => new OsuDbLoggerProvider();
|
public void AddProvider(ILoggerProvider provider) => new OsuDbLoggerProvider();
|
||||||
|
|
||||||
private class OsuDbLoggerProvider : ILoggerProvider
|
private class OsuDbLoggerProvider : ILoggerProvider
|
||||||
{
|
{
|
||||||
|
#region Disposal
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
public ILogger CreateLogger(string categoryName) => new OsuDbLogger();
|
public ILogger CreateLogger(string categoryName) => new OsuDbLogger();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user