You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//ar deserialisedMapping = JsonConvert.DeserializeObject<ExpandoObject>(jsonInput, new ExpandoObjectConverter()); -- This is the old Newtonsoft expando object approach
//ar deserializedMapping = JsonConvert.DeserializeObject<ExpandoObject>(jsonInput, new ExpandoObjectConverter()); -- This is the old Newtonsoft expando object approach
--Example using a data object as a query source rather than a table/file.
2
+
--Usage in a CTE context with multiple sources mapping to a single target
3
+
{{#eachdataObjectMappings}}
4
+
5
+
{{#ifmappingName}}
6
+
--Working on {{mappingName}}.
7
+
{{else}}
8
+
--No mapping name is defined.
9
+
{{/if}}
10
+
11
+
WITH
12
+
{{#eachsourceDataObjects}}{{@index}} AS
13
+
( {{#ifdataQueryCode}}-- This is the data query as a source object
14
+
{{dataQueryCode}}{{else}}
15
+
-- This is the item, with brackets added using a custom extension
16
+
SELECT * FROM {{stringwrapname"[""]"}}{{/if}}
17
+
){{#unless@last}},{{/unless}}
18
+
{{/each}}
19
+
{{#eachsourceDataObjects}}SELECT {{#each../dataItemMappings}}{{#eachsourceDataItems}}{{#ifdataQueryCode}}{{dataQueryCode}} AS {{../targetDataItem.name}}{{else}}
20
+
{{stringwrapname"[""]"}} AS {{../targetDataItem.name}}
0 commit comments