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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,11 @@
2
2
3
3
Represents the **NuGet** versions.
4
4
5
+
## v3.0.2
6
+
-*Fixed:* The completion stage was incorrectly using the `EntityKey` versus `TableKey` (where using global identifiers) for the version hashing resulting in re-publishing where not required; code-generation template corrected and is required for fix.
7
+
5
8
## V3.0.1
6
-
-*Fixed:*Generated `ExecuteBatch.sql` fixed to not invoke `sys.fn_cdc_get_min_lsn` twice but use returned result as intended.
9
+
-*Fixed:* Generated `ExecuteBatch.sql` fixed to not invoke `sys.fn_cdc_get_min_lsn` twice but use returned result as intended.
7
10
8
11
## v3.0.0
9
12
-*Enhancement:* Major **"Sidecar"** feature added based on feedback from the community.
Copy file name to clipboardExpand all lines: samples/SqlServerDemo/SqlServerDemo.Database/Schema/NTangle/Stored Procedures/Generated/spContactBatchExecute.sql
+1-1
Original file line number
Diff line number
Diff line change
@@ -198,7 +198,7 @@ BEGIN
198
198
LEFT OUTER JOIN [Legacy].[ContactMapping] AS [cm] ON ([cm].[ContactId] = [c].[ContactId])
199
199
LEFT OUTER JOIN [NTangle].[IdentifierMapping] AS [_im] ON ([_im].[Schema] = N'Legacy'AND [_im].[Table] = N'Contact'AND [_im].[Key] = CAST([_chg].[ContactId] AS NVARCHAR(128)))
200
200
LEFT OUTER JOIN [NTangle].[IdentifierMapping] AS [_im1] ON ([_im1].[Schema] ='Legacy'AND [_im1].[Table] ='Contact'AND [_im1].[Key] = CAST([c].[AlternateContactId] AS NVARCHAR(128)))
201
-
LEFT OUTER JOIN [NTangle].[VersionTracking] AS [_vt] ON ([_vt].[Schema] = N'Legacy'AND [_vt].[Table] = N'Contact'AND [_vt].[Key] =_im.GlobalId)
201
+
LEFT OUTER JOIN [NTangle].[VersionTracking] AS [_vt] ON ([_vt].[Schema] = N'Legacy'AND [_vt].[Table] = N'Contact'AND [_vt].[Key] =CAST([_chg].[ContactId] AS NVARCHAR(128)))
202
202
ORDER BY [_Lsn] ASC
203
203
204
204
-- Related table: '[Legacy].[Address]' - unique name 'Address' - only use INNER JOINS to get what is actually there right now (where applicable).
Copy file name to clipboardExpand all lines: tools/NTangle.CodeGen/Templates/SpExecuteBatch_sql.hbs
+1-1
Original file line number
Diff line number
Diff line change
@@ -245,7 +245,7 @@ BEGIN
245
245
LEFT OUTER JOIN [{{Root.CdcSchema}}].[{{Root.IdentifierMappingTable}}] AS [{{IdentifierMappingAlias}}] ON ([{{IdentifierMappingAlias}}].[Schema] = '{{IdentifierMappingSchema}}' AND [{{IdentifierMappingAlias}}].[Table] = '{{IdentifierMappingTable}}' AND [{{IdentifierMappingAlias}}].[Key] = CAST([{{IdentifierMappingParent.Parent.Alias}}].[{{IdentifierMappingParent.Name}}] AS NVARCHAR(128)))
246
246
{{/ifval}}
247
247
{{/each}}
248
-
LEFT OUTER JOIN [{{Root.CdcSchema}}].[{{Root.VersionTrackingTable}}] AS [_vt] ON ([_vt].[Schema] = N'{{Schema}}' AND [_vt].[Table] = N'{{Table}}' AND [_vt].[Key] = {{#ifIdentifierMapping}}_im.GlobalId){{else}}{{#ifeqPrimaryKeyColumns.Count1}}{{#eachPrimaryKeyColumns}}CAST([_chg].[{{Name}}] AS NVARCHAR(128))){{/each}}{{else}}CONCAT({{#eachPrimaryKeyColumns}}CAST([_chg].[{{Name}}] AS NVARCHAR(128))){{#unless@last}}, ',', {{/unless}}{{/each}}){{/ifeq}}{{/if}}
248
+
LEFT OUTER JOIN [{{Root.CdcSchema}}].[{{Root.VersionTrackingTable}}] AS [_vt] ON ([_vt].[Schema] = N'{{Schema}}' AND [_vt].[Table] = N'{{Table}}' AND [_vt].[Key] = {{#ifeqPrimaryKeyColumns.Count1}}{{#eachPrimaryKeyColumns}}CAST([_chg].[{{Name}}] AS NVARCHAR(128))){{/each}}{{else}}CONCAT({{#eachPrimaryKeyColumns}}CAST([_chg].[{{Name}}] AS NVARCHAR(128))){{#unless@last}}, ',', {{/unless}}{{/each}}){{/ifeq}}
0 commit comments