I have the following code in my HomeController:
public ActionResult Edit(int id) { var ArticleToEdit = (from m in _db.ArticleSet where m.storyId == id se
Error: The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value.
This error occurred when due to NOT assigning any value against a NOT NULL date column in SQL DB using EF and was resolved by assigning the same.
Hope this helps!