public static void Initialize(HoroscopeContext context) { if (!context.Prediction.Any()) { context.Prediction.AddRange( new Prediction() , new Prediction() , new Prediction() );; context.SaveChanges(); } }
public HomeController(HoroscopeContext context) { db = context; }