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