public IdentityServerDbContext CreateDbContext(string[] args)
        {
            var connString        = ConfigurationHelper.GetConnectionString(Directory.GetCurrentDirectory());
            var migrationAssembly = typeof(IdentityServerDbContextFactory).GetTypeInfo().Assembly;

            return(new IdentityServerDbContext(
                       DbContextHelper.BuildDbContextOption <IdentityServerDbContext>(connString, migrationAssembly)));
        }
        public PersistedGrantDbContext CreateDbContext(string[] args)
        {
            var connString        = ConfigurationHelper.GetConnectionString(Directory.GetCurrentDirectory());
            var migrationAssembly = typeof(PersistedGrantDbContextFactory).GetTypeInfo().Assembly;

            return(new PersistedGrantDbContext(
                       DbContextHelper.BuildDbContextOption <PersistedGrantDbContext>(connString, migrationAssembly),
                       new OperationalStoreOptions()));
        }