Ejemplo n.º 1
0
        // The following method was not requested in the test. I just added it
        // to make testing a little bit easier.
        public static async Task CleanupTargetDatbaseAsync(this CustomerContext db)
        {
            await db.Database.ExecuteSqlCommandAsync("DELETE FROM dbo.Customers");

            await db.Database.ExecuteSqlCommandAsync("DELETE FROM dbo.Cities");
        }