public HomeController() { //for dummy values MeetingOrganizerContext context = new MeetingOrganizerContext(); Meeting m = new Meeting { Header = "Sample Meeting 1", StartTime = "12:00", EndTime = "13:00", MeetingDate = "2017-09-17", Participants = "Sample User 1,Sample User 2", UpdateTime = DateTime.Today.ToString() }; Meeting m2 = new Meeting { Header = "Sample Meeting 2", StartTime = "13:00", EndTime = "14:00", MeetingDate = "2017-09-17", Participants = "Sample User 1,Sample User 2", UpdateTime = DateTime.Today.ToString() }; Meeting m3 = new Meeting { Header = "Sample Meeting 3", StartTime = "15:00", EndTime = "16:00", MeetingDate = "2017-09-17", Participants = "Sample User 1,Sample User 2", UpdateTime = DateTime.Today.ToString() }; Meeting m4 = new Meeting { Header = "Sample Meeting 4", StartTime = "17:00", EndTime = "18:00", MeetingDate = "2017-09-17", Participants = "Sample User 1,Sample User 2", UpdateTime = DateTime.Today.ToString() }; Meeting m5 = new Meeting { Header = "Sample Meeting 5", StartTime = "12:00", EndTime = "13:00", MeetingDate = "2017-09-18", Participants = "Sample User 1,Sample User 2", UpdateTime = DateTime.Today.ToString() }; Meeting m6 = new Meeting { Header = "Sample Meeting 6", StartTime = "13:00", EndTime = "14:00", MeetingDate = "2017-09-18", Participants = "Sample User 1,Sample User 2", UpdateTime = DateTime.Today.ToString() }; context.Meeting.Add(m); context.Meeting.Add(m2); context.Meeting.Add(m3); context.Meeting.Add(m4); context.Meeting.Add(m5); context.Meeting.Add(m6); context.SaveChanges(); }
protected override void Seed(MeetingOrganizerContext context) { base.Seed(context); }