0
我有兩個模式;Biztalk映射邏輯路徑
src.xsd
destination.xsd
src.xsd有2個日期和1串
-FromDate (example: 2001-01-01)
-ToDate (example: 2002-01-01)
-Intervaltype (example: 'A long year')
dest.xsd有1個字符串屬性
-Query
我要地圖這讓我實現一個連接字符串在目標架構的查詢屬性中,如:
"WHERE date1 >= 2001-01-01 AND date2 <= ToDate AND IntervalDescription = 'A long year'"
我已經通過使用「string concatenate」functoid實現了這一點。
問題是日期是可選的,我想在映射中設置「默認」值,如果沒有在src.xsd中提供。在這種情況下,我想
FromDate to be the current date - 10days
和
ToDate to be de current date
如何才能實現這一目標?
感謝您的幫助!
只需使用內聯C#腳本functoid用3個輸入參數,並使用標準的C#的方法來操作的字符串。 http://msdn.microsoft.com/en-us/library/ee267841(v=bts.10).aspx – FCR