public HotelAppMigrationsDbContext CreateDbContext(string[] args)
        {
            HotelAppEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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