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.
我有访问数据库连接到名为 T2 的 vb.net 数据库,它有 3 个表我需要从表 3 中找到列名 Qtyin 的总和并将结果放在文本框中我尝试使用 LINQ,但有一些错误:
Dim query = Aggregate Qtyin In T2DataSet.Table3 Into Sum() TextBox1.Text = query.ToString
基于方法的查询而不是基于语法的查询怎么样?
Dim sum = T2DataSet.Table3.Sum(Function(i) i.Qtyin) TextBox1.Text = sum