Migrations not creating all fields from class

MVC 5 When creating a new migration it is generating the some tables correctly. However, classes like the one below are being generated with almost all of the fields missing in migration script. public class Meeting { public int ID { get; set; } [Display(Name = "Meeting Topic")] public string MeetingTopic; [Display(Name = "Meeting Minutes")]… Read More Migrations not creating all fields from class

ViewBag Message not displaying in view in mvc5

"New Movie" is not displaying in View. Instead, it is displaying "ViewBag.Message" directly. But the data in ViewModel works fine. NewMovie Action Method: public ViewResult NewMovie() { var movieType = _context.MovieTypes.ToList(); var viewModel = new MovieViewModel { MovieTypes = movieType }; ViewBag.Message = "New Movie"; return View("MovieForm", viewModel); } MovieForm View: @model VideoRentalApp.ViewModel.MovieViewModel @{ ViewBag.Title… Read More ViewBag Message not displaying in view in mvc5