【发布时间】:2011-03-16 00:02:07
【问题描述】:
我有一个列表框,如果城镇用户可以从列表中选择,我希望能够基于列表中的选定项目构建 LINQ 查询,例如
Dim ddlTowns As ListBox = CType(Filter_Accommodation1.FindControl("ddlTowns"), ListBox)
If Not ddlTowns Is Nothing Then
For Each Item In ddlTowns.Items
If Item.Selected Then
'// Build query
End If
Next
End If
我研究了 LinqKit,因为它似乎能够满足我的需求,但经过数小时的尝试后我无法取得任何进展。我在 VB 中找不到任何有意义或可用的东西。
【问题讨论】:
标签: vb.net linq linq-to-objects custom-linq-providers