From 05d79f751115261713fee727a6a05ed9f205f639 Mon Sep 17 00:00:00 2001 From: Dmitriy Benyuk Date: Wed, 24 Apr 2024 17:56:51 +0300 Subject: [PATCH] Fix isse with wrong PK --- ...taIntegration.Providers.UserProvider.csproj | 2 +- src/UserDestinationWriter.cs | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Dynamicweb.DataIntegration.Providers.UserProvider.csproj b/src/Dynamicweb.DataIntegration.Providers.UserProvider.csproj index 4ed851c..d30e8a2 100644 --- a/src/Dynamicweb.DataIntegration.Providers.UserProvider.csproj +++ b/src/Dynamicweb.DataIntegration.Providers.UserProvider.csproj @@ -1,6 +1,6 @@  - 10.0.20 + 10.0.21 1.0.0.0 User Provider User Provider diff --git a/src/UserDestinationWriter.cs b/src/UserDestinationWriter.cs index 8e268f3..df8c544 100644 --- a/src/UserDestinationWriter.cs +++ b/src/UserDestinationWriter.cs @@ -975,22 +975,22 @@ private void AddMappingsToJobThatNeedsToBeThereForMoveToMainTables() if (!updateUsersByCustomerNumberMode && accessUserColumnMappings.Find(cm => cm.DestinationColumn.Name == "AccessUserUserName") == null) { accessUserMapping.AddMapping(randomColumn, - _schemaTables.Find(t => t.Name == "AccessUser").Columns.Find(c => c.Name == "AccessUserUserName"), true); + _schemaTables.Find(t => t.Name == "AccessUser").Columns.Find(c => c.Name == "AccessUserUserName"), false); } if (!updateUsersByCustomerNumberMode && accessUserColumnMappings.Find(cm => cm.DestinationColumn.Name == "AccessUserPassword") == null) { accessUserMapping.AddMapping(randomColumn, - _schemaTables.Find(t => t.Name == "AccessUser").Columns.Find(c => c.Name == "AccessUserPassword"), true); + _schemaTables.Find(t => t.Name == "AccessUser").Columns.Find(c => c.Name == "AccessUserPassword"), false); } if (accessUserColumnMappings.Find(cm => cm.DestinationColumn.Name == "AccessUserActive") == null) { accessUserMapping.AddMapping(randomColumn, - _schemaTables.Find(t => t.Name == "AccessUser").Columns.Find(c => c.Name == "AccessUserActive"), true); + _schemaTables.Find(t => t.Name == "AccessUser").Columns.Find(c => c.Name == "AccessUserActive"), false); } if (accessUserColumnMappings.Find(cm => cm.DestinationColumn.Name == "AccessUserType") == null) { accessUserMapping.AddMapping(randomColumn, - _schemaTables.Find(t => t.Name == "AccessUser").Columns.Find(c => c.Name == "AccessUserType"), true); + _schemaTables.Find(t => t.Name == "AccessUser").Columns.Find(c => c.Name == "AccessUserType"), false); } if (_allowEmail && accessUserColumnMappings.Find(cm => cm.DestinationColumn.Name == "AccessUserNewsletterAllowed") == null) { @@ -1031,22 +1031,22 @@ private void AddMappingsToJobThatNeedsToBeThereForMoveToMainTables() if (groupColumnMappings.Find(cm => cm.DestinationColumn.Name == "AccessUserUserName") == null) { groupMapping.AddMapping(randomColumn, - _schemaTables.Find(t => t.Name == "AccessUser").Columns.Find(c => c.Name == "AccessUserUserName"), true); + _schemaTables.Find(t => t.Name == "AccessUser").Columns.Find(c => c.Name == "AccessUserUserName"), false); } if (groupColumnMappings.Find(cm => cm.DestinationColumn.Name == "AccessUserName") == null) { groupMapping.AddMapping(randomColumn, - _schemaTables.Find(t => t.Name == "AccessUser").Columns.Find(c => c.Name == "AccessUserName"), true); + _schemaTables.Find(t => t.Name == "AccessUser").Columns.Find(c => c.Name == "AccessUserName"), false); } if (groupColumnMappings.Find(cm => cm.DestinationColumn.Name == "AccessUserActive") == null) { groupMapping.AddMapping(randomColumn, - _schemaTables.Find(t => t.Name == "AccessUser").Columns.Find(c => c.Name == "AccessUserActive"), true); + _schemaTables.Find(t => t.Name == "AccessUser").Columns.Find(c => c.Name == "AccessUserActive"), false); } if (groupColumnMappings.Find(cm => cm.DestinationColumn.Name == "AccessUserType") == null) { groupMapping.AddMapping(randomColumn, - _schemaTables.Find(t => t.Name == "AccessUser").Columns.Find(c => c.Name == "AccessUserType"), true); + _schemaTables.Find(t => t.Name == "AccessUser").Columns.Find(c => c.Name == "AccessUserType"), false); } } } @@ -1057,7 +1057,7 @@ private void AddMappingsToJobThatNeedsToBeThereForMoveToMainTables() { if (mapping != null) { - mapping.AddMapping(randomColumn, _schemaTables.Find(t => t.Name == "SystemFieldValue").Columns.Find(c => c.Name == "SystemFieldValueTableName"), true); + mapping.AddMapping(randomColumn, _schemaTables.Find(t => t.Name == "SystemFieldValue").Columns.Find(c => c.Name == "SystemFieldValueTableName"), false); } } }