我想用多个条件过滤我的数据表如何实现使用Lambda表达式和VB.Net我的示例代码如下
Dim resultStyle = invData.Tables(0).AsEnumerable() _
.Where(Function(m) m.Field(Of Integer?)("InstitutionalInvestorStyleID").HasValue ) _
.GroupBy(Function(v) New With {Key .InvestorStyleID = v.Field(Of Integer)("InstitutionalInvestorStyleID"), Key .StyleName = v.Field(Of String)("InstitutionalInvestorStyleName")}) _
.Select(Function(v) New With {Key .InvestorStyleID = v.Key.InvestorStyleID, Key .StyleName = v.Key.StyleName, Key .Sum = v.Sum(Function(r) Double.Parse(r.Item("k001ICGeo").ToString()))})
我想只选择那些“InstitutionalInvestorStyleID”不等于null且与其他列(Styleid列可以是多个样式id)的数据