Example #1
0
        public MarkisaMigrationsDbContext CreateDbContext(string[] args)
        {
            MarkisaEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

            var builder = new DbContextOptionsBuilder <MarkisaMigrationsDbContext>()
                          .UseNpgsql(configuration.GetConnectionString("Default"));

            return(new MarkisaMigrationsDbContext(builder.Options));
        }
Example #2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     MarkisaEfCoreEntityExtensionMappings.Configure();
 }