Ejemplo n.º 1
0
        public async Task Seed()
        {
            if (await Identities.AnyAsync() || await PasswordAuthentications.AnyAsync())
            {
                return;
            }

            await Identities.AddRangeAsync(Seeder.Identites);

            await PasswordAuthentications.AddRangeAsync(Seeder.PasswordAuths);

            await SaveChangesAsync();
        }