Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C# を使用してデータベース データの値の Sum() を取得しようとしていますが、Exception error sql type -0 here is my Code というエラーが発生しています。
問題は、私がdrを介して値を渡すときに、常に例外エラーが発生することです
ArgumentException は未処理の不明な SQL タイプ -0 を持っています
linq を使用できる場合は、次のように修正できます。
label.Text=(from f in audittrail_tbl select f).Sum(S=>S.Income).ToString();