public ElsaDemoMigrationsDbContext CreateDbContext(string[] args)
        {
            ElsaDemoEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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