#pragma warning disable CS1591 #pragma warning disable SA1601 using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Design; namespace Jellyfin.Server.Implementations.Migrations { /// /// The design time factory for . /// This is only used for the creation of migrations and not during runtime. /// internal class DesignTimeJellyfinDbFactory : IDesignTimeDbContextFactory { public JellyfinDb CreateDbContext(string[] args) { var optionsBuilder = new DbContextOptionsBuilder(); optionsBuilder.UseSqlite("Data Source=jellyfin.db"); return new JellyfinDb(optionsBuilder.Options); } } }