-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
merged US 15364 & BUG 15267 & BUG 15251 into this #10
Conversation
src/OrderProvider.cs
Outdated
@@ -155,15 +156,27 @@ public override Schema GetOriginalSourceSchema() | |||
tablesToRemove.Add(table); | |||
else if (table.Name == "EcomOrders") | |||
{ | |||
table.AddColumn(new SqlColumn(("OrderCustomerAccessUserExternalId"), typeof(string), SqlDbType.NVarChar, table, -1, | |||
false, false, true)); | |||
table.AddColumn(new SqlColumn(SourceColumnNameForDestinationOrderCustomerAccessUserId, typeof(string), SqlDbType.NVarChar, table, -1, false, false, true)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the use of SourceColumnNameForDestinationOrderCustomerAccessUserId really right where it's been used here?
I thought OrderCustomerAccessUserExternalId was made as the constant for "OrderCustomerAccessUserExternalId"
src/OrderProvider.cs
Outdated
@@ -501,7 +538,7 @@ private void ProcessRow(Mapping mapping, ColumnMappingCollection columnMappings, | |||
if (mapping != null && mapping.DestinationTable != null && mapping.DestinationTable.Name == "EcomOrders" && !string.IsNullOrEmpty(SourceColumnNameForDestinationOrderCustomerAccessUserId)) | |||
{ | |||
object accessUserId = DBNull.Value; | |||
var OrderCustomerAccessUserExternalIdMapping = columnMappings.Find(cm => string.Compare(cm.DestinationColumn.Name, "OrderCustomerAccessUserExternalId", true) == 0); | |||
var OrderCustomerAccessUserExternalIdMapping = columnMappings.Find(cm => string.Compare(cm.DestinationColumn.Name, SourceColumnNameForDestinationOrderCustomerAccessUserId, true) == 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you missed one here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got damn it
AB#15373