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

            var configuration = BuildConfiguration();

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

            return(new Bar430MigrationsDbContext(builder.Options));
        }
Exemplo n.º 2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     Bar430EfCoreEntityExtensionMappings.Configure();
 }