The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value

后端 未结 23 1413
旧时难觅i
旧时难觅i 2020-11-28 20:19

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         


        
23条回答
  •  一个人的身影
    2020-11-28 20:45

    Also, if you don't know part of code where error occured, you can profile "bad" sql execution using sql profiler integrated to mssql.

    Bad datetime param will displayed something like that :

    bad param

提交回复
热议问题