Any clever way to fix 'string or binary data would be truncated' warning with LINQ

后端 未结 4 2345
暗喜
暗喜 2021-02-20 16:42

Is there a clever way to determine which field is causing \'string or binary data would be truncated\' with LINQ.

I\'ve always ended up doing it manually by stepping thr

4条回答
  •  灰色年华
    2021-02-20 17:04

    Fire up SQL Profiler. The last query from your application should be the one that is failing.

提交回复
热议问题