public StudentStoreMigrationsDbContext CreateDbContext(string[] args)
        {
            StudentStoreEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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