public MeterReadingMigrationsDbContext CreateDbContext(string[] args)
        {
            MeterReadingEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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