Пример #1
0
        public void SeedEverything(IdentityServerDbContext context)
        {
            context.Database.EnsureCreated();

            if (context.Users.Any())
            {
                return;
            }
        }
Пример #2
0
        public static void Initialize(IdentityServerDbContext context)
        {
            var initializer = new IdentityServerInitializer();

            initializer.SeedEverything(context);
        }