Skip to content

Instantly share code, notes, and snippets.

@lot224
Created April 18, 2016 18:45
Show Gist options
  • Save lot224/1691c307e1f931662ca68c80f1e4e310 to your computer and use it in GitHub Desktop.
Save lot224/1691c307e1f931662ca68c80f1e4e310 to your computer and use it in GitHub Desktop.
Run string linq query
StringBuilder queryString = new StringBuilder("SELECT [System.Id]" +
" FROM WorkItemLinks " +
" WHERE [Source].[System.WorkItemType] = '" + TFS_TIMESHEET_WORK_ITEM_TYPE + "'" +
" AND [Source].[System.TeamProject] = '" + TFS_TIMESHEET_PROJECT_KEY + "'" +
" AND [Source].[System.Id] = " + id
);
Query wiQuery = new Query(GetWorkItemStore, queryString.ToString());
WorkItemLinkInfo[] wiTrees = wiQuery.RunLinkQuery();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment