mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 18:28:27 -04:00
18 lines
431 B
C#
18 lines
431 B
C#
#nullable disable
|
|
using LinqToDB.Common;
|
|
using LinqToDB.EntityFrameworkCore;
|
|
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 DbContext GetDbContext();
|
|
} |