コード例 #1
0
        private static async Task SeedUsers(DataContext context)
        {
            var users = new List <User>
            {
                new User
                {
                    Id             = Guid.NewGuid(),
                    Email          = "*****@*****.**",
                    Username       = "******",
                    HashedPassword = "******".ToSHA256()
                }
            };

            await context.AddRangeAsync(users);
        }