2009-12-14 41 views

回答

0

我遇到了同樣的問題,而試圖查詢最新的更新和通過執行以下操作

// defined elsewhere 
private DateTime lastUpdated; 


string consult = "select * from WorkItem where [Created Date] > ' " + lastUpdated.ToString("MM/dd/yy") + 
        "' AND [Work Item Type] = 'Test Case'"; 

IEnumerable<ITestCase> tcc = testManagementTeamProject.TestCases.Query(consult).Where(tp => tp.DateCreated > lastUpdated); 

我做了檢索測試非常類似的東西導致它周圍的工作

0

的最後一個參數這query constructor,您可以定義精度:

dayPrecision

When TRUE, indicates that a DateTime should resolve to an entire day. Often, it is TRUE to avoid being more precise about a specific time.

0

爲了在一個具體日期來過濾TFS您的項目,堅持這種格式: enter image description here

相關問題