public HyggeMigrationsDbContext CreateDbContext(string[] args)
        {
            HyggeEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

            var builder = new DbContextOptionsBuilder <HyggeMigrationsDbContext>()
                          .UseSqlServer(configuration.GetConnectionString("Default"));

            return(new HyggeMigrationsDbContext(builder.Options));
        }
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     HyggeEfCoreEntityExtensionMappings.Configure();
 }