Exemplo n.º 1
0
        public AlumnadoMigrationsDbContext CreateDbContext(string[] args)
        {
            AlumnadoEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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