[SQL][C#] 使用 DataContext 將資料表欄位填入 Null 參數遭遇錯誤的解決方法

  • 950
  • 0

這篇文章分享一個小技巧,作為使用 DataContext 執行 SQL 指令時,在參數使用 Null 值卻出現「A query parameter cannot be of type 'System.Object' (查詢參數不能屬於型別 'System.Object' )」錯誤訊息的解決方法。

This article describe a method can solve the error which occurs when 'null' is used as a paramter of DataContext.ExecuteCommand.

...繼續閱讀 »