You do it well, as you have, you do not need to change it. You should be able to use the generated classes, or if you think you are exposing too much, you can create a presentation model in which you will fill in only the data that you need and pass it to the view. This is how MVC should work.
, Articles, , , ,
public class ArticlesViewModel
{
[Required]
public string Title { get; set; }
public DataTime Date { get; set; }
}
- :
ArticlesViewModel articleVM = new ArticlesViewModel();
return View(articleVM);
, Title Date ( ID, Article .)
, .