0
这是从Splatt表返回数据列表的代码。LINQ SUM,AVERAGE
Public Function GetListofProduct(ByVal pCOde As String, ByVal date1 As DateTime, ByVal date2 As DateTime) As List(Of Splatt)
Return (From e As Splatt In TradingCTX.Splatts Where e.plCode.Contains(pCOde) And (e.plDate = date1 Or e.plDate = date2)).ToList
End Function
我真的需要帮助获得价格的总和并将其转移到另一个gridview。
谢谢@Michael Z. – jezz