private static void PrintSeededData()
 {
     Console.WriteLine("Seeded Data");
     using (var context = new GlobalDataContext("MigrationDemo"))
     {
         foreach (var industry in context.Industries)
         {
             Console.WriteLine("Industry: {0}", industry.Name);
         }
     }
     Console.WriteLine();
 }
Example #2
0
 private static void PrintSeededData()
 {
     Console.WriteLine("Seeded Data");
     using (var context = new GlobalDataContext("MigrationDemo"))
     {
         foreach (var industry in context.Industries)
         {
             Console.WriteLine("Industry: {0}", industry.Name);
         }
     }
     Console.WriteLine();
 }