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.
我正在编写一个 WIQL 查询,我需要根据工作项的 ID 过滤掉内容。在这里,我需要将 ID 与用户定义的值进行比较,但我不知道该怎么做。
下面是我的代码:
string queryString = "Select [State], [Title] From WorkItems Where [Work Item Type] = @Type AND [ID]= ";
我听说过 IDictionary 实现,但是我不知道这对我有什么帮助。
不就是把id的值加到字符串末尾那么简单吗?
string queryString = "Select [State], [Title] From WorkItems Where [Work Item Type] = @Type AND [ID]= " + myId;