using BTCPayServer.Abstractions.Contracts; using BTCPayServer.Abstractions.Models; using Microsoft.EntityFrameworkCore; namespace BTCPayServer.Data { public class ApplicationDbContextFactory : BaseDbContextFactory { public ApplicationDbContextFactory(DatabaseOptions options) : base(options, "") { } public override ApplicationDbContext CreateContext() { var builder = new DbContextOptionsBuilder(); ConfigureBuilder(builder); return new ApplicationDbContext(builder.Options); } } }