Пример #1
0
        public static void Seed(WebAppContext context)
        {
            var db = context.Database.EnsureCreated();

            if (context.User.Any())
            {
                return;
            }
            ApplicationSeed.CreateApplication(context);
            RoleSeed.CreateRole(context);
            UserSeed.CreateUser(context);
        }