Skip to content

Commit

Permalink
Fix isse with wrong PK
Browse files Browse the repository at this point in the history
  • Loading branch information
DWDBE committed Apr 24, 2024
1 parent 6c67def commit 3ced6bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>10.0.20</Version>
<Version>10.0.21</Version>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<Title>User Provider</Title>
<Description>User Provider</Description>
Expand Down
18 changes: 9 additions & 9 deletions src/UserDestinationWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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);
}
}
}
Expand All @@ -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);
}
}
}
Expand Down

0 comments on commit 3ced6bc

Please sign in to comment.