mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
16 lines
376 B
C#
16 lines
376 B
C#
#nullable disable
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace NadekoBot.Services;
|
|
|
|
public abstract class DbService
|
|
{
|
|
/// <summary>
|
|
/// Call this to apply all migrations
|
|
/// </summary>
|
|
public abstract Task SetupAsync();
|
|
|
|
public abstract DbContext CreateRawDbContext(string dbType, string connString);
|
|
public abstract NadekoContext GetDbContext();
|
|
} |