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

            var configuration = BuildConfiguration();

            var builder = new DbContextOptionsBuilder <ElsaCoreMigrationsDbContext>()
                          .UseSqlite(configuration.GetConnectionString("Default"));

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