This repository has been archived on 2024-12-22. You can view files and clone it, but cannot push or open issues or pull requests.
elliebot/src/EllieBot/_common/DbService.cs

15 lines
373 B
C#
Raw Normal View History

#nullable disable
using Microsoft.EntityFrameworkCore;
namespace EllieBot.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);
2024-07-07 06:10:58 +00:00
public abstract EllieContext GetDbContext();
}