Updated some namespaces, finished some todos. v5 should be cancelled probably as the code is too intertwined to make it modular

This commit is contained in:
Kwoth
2023-11-11 05:22:52 +00:00
parent a28be0d343
commit bc77783820
224 changed files with 308 additions and 317 deletions

View File

@@ -1,7 +1,7 @@
using Microsoft.EntityFrameworkCore;
using NadekoBot.Db.Models;
namespace NadekoBot.Services.Database;
namespace Nadeko.Bot.Db;
public sealed class MysqlContext : NadekoContext
{

View File

@@ -2,11 +2,11 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using NadekoBot.Db.Models;
using NadekoBot.Services.Database.Models;
using Nadeko.Bot.Db.Models;
// ReSharper disable UnusedAutoPropertyAccessor.Global
namespace NadekoBot.Services.Database;
namespace Nadeko.Bot.Db;
public abstract class NadekoContext : DbContext
{

View File

@@ -2,7 +2,7 @@
using LinqToDB.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
namespace NadekoBot.Services.Database;
namespace Nadeko.Bot.Db;
public sealed class NadekoDbService : DbService
{

View File

@@ -1,6 +1,6 @@
using Microsoft.EntityFrameworkCore;
namespace NadekoBot.Services.Database;
namespace Nadeko.Bot.Db;
public sealed class PostgreSqlContext : NadekoContext
{

View File

@@ -1,7 +1,7 @@
using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore;
namespace NadekoBot.Services.Database;
namespace Nadeko.Bot.Db;
public sealed class SqliteContext : NadekoContext
{