我正在爲約會數據庫創建一個WCF數據服務。如何通過WCF數據服務公開TimeSpan?
我將約會存儲爲類型爲TimeSpan的持續時間的DateTime。當我試圖訪問我的數據服務,我得到以下錯誤:
"The server encountered an error processing the request. The exception message is 'The property 'Duration' on type 'Appointment' is of type 'Time' which is not a supported primitive type.'. See server logs for more details."
任何想法,我怎麼能代表一個時間段,並把它通過訪問我的WCF數據服務?