Пример #1
0
        public static async Task Populate(CustomerMngtContext dbContext)
        {
            await dbContext.Customers.AddAsync(new CustomerMngt.Domain.Entities.Customer
            {
                Email     = "*****@*****.**",
                Password  = "******",
                FirstName = "Seed",
                Surname   = "Seed",
                Created   = DateTime.Now,
                Updated   = DateTime.Now
            });

            await dbContext.SaveChangesAsync();
        }
Пример #2
0
 public async Task <int> SaveChangesAsync()
 {
     return(await DbContext.SaveChangesAsync());
 }