示例#1
0
        private static void ResetAndWarmup()
        {
            TestEf6.ResetAndWarmUp();

            using (var db = new EfCore.Context.AdventureWorksContext())
            {
                //db.Database.ExecuteSqlCommand(@"DELETE FROM Production.ProductCategory WHERE Name LIKE 'Test %'");
                db.Customers.FirstOrDefault();
            }
        }
示例#2
0
        private static void ResetAndWarmup()
        {
            TestEf6.ResetAndWarmUp();

            using (var db = new EFCore3.EfStructures.AW2016Context())
            {
                //db.Database.ExecuteSqlCommand(@"DELETE FROM Production.ProductCategory WHERE Name LIKE 'Test %'");
                db.Customer.FirstOrDefault();
            }
        }
示例#3
0
 private static void ResetAndWarmup()
 {
     TestEf6.ResetAndWarmUp();
     TestEfCore.ResetAndWarmUp();
 }