Esempio n. 1
0
 public static void Initialize()
 {
     using (var context = new BlogContext())
     {
         Database.SetInitializer(new DatabaseInitializer());
         context.Database.Initialize(true);
     }
 }