Ejemplo n.º 1
0
        public JuanAlvarezMigrationsDbContext CreateDbContext(string[] args)
        {
            JuanAlvarezEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new JuanAlvarezMigrationsDbContext(builder.Options));
        }
Ejemplo n.º 2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     JuanAlvarezEfCoreEntityExtensionMappings.Configure();
 }