static void Listing21_5() { Console.WriteLine("{0} : Begin", new StackTrace(0, true).GetFrame(0).GetMethod().Name); NorthwindEntities context = new NorthwindEntities(); if (context.DatabaseExists()) { context.DeleteDatabase(); } Console.WriteLine("{0} : End", new StackTrace(0, true).GetFrame(0).GetMethod().Name); }