Biztalk映射逻辑路径

Biztalk映射逻辑路径,biztalk,biztalk-mapper,Biztalk,Biztalk Mapper,我有两个模式 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 date

我有两个模式

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'"

如何做到这一点


谢谢你的帮助

解决方案非常简单

FromDate      -> LogicalDate -> ScriptingFunctioid -> StringConcatenate -> Destination
FromDate      ---------------->
ToDate        -> LogicalDate -> ScriptingFunctioid ->
ToDate        ---------------->
Intervaltype  -------------------------------------->

只需使用带有3个输入参数的内联C#脚本functoid,并使用标准C#方法来操作字符串。请注意,“LogicalDate”functoid不能保证日期的格式符合您的期望,只是可以将其解析为日期。
ToDate to be de current date
FromDate      -> LogicalDate -> ScriptingFunctioid -> StringConcatenate -> Destination
FromDate      ---------------->
ToDate        -> LogicalDate -> ScriptingFunctioid ->
ToDate        ---------------->
Intervaltype  -------------------------------------->