From 4e91d54831c1a55546c37a22fea8028238ab22b4 Mon Sep 17 00:00:00 2001 From: Frederik Nielsen Date: Tue, 15 Oct 2024 10:19:39 +0200 Subject: [PATCH 1/3] Adding GetId --- ...ynamicweb.DataIntegration.Providers.OrderProvider.csproj | 6 +++--- src/OrderProvider.cs | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Dynamicweb.DataIntegration.Providers.OrderProvider.csproj b/src/Dynamicweb.DataIntegration.Providers.OrderProvider.csproj index c0069db..2723692 100644 --- a/src/Dynamicweb.DataIntegration.Providers.OrderProvider.csproj +++ b/src/Dynamicweb.DataIntegration.Providers.OrderProvider.csproj @@ -1,6 +1,6 @@  - 10.7.0 + 10.8.0 1.0.0.0 Order Provider Order Provider @@ -23,8 +23,8 @@ snupkg - - + + diff --git a/src/OrderProvider.cs b/src/OrderProvider.cs index 1c5e62c..2e5b251 100644 --- a/src/OrderProvider.cs +++ b/src/OrderProvider.cs @@ -150,6 +150,10 @@ Schema ISource.GetSchema() return Schema; } + string ISource.GetId() => "Source|OrderProvider"; + + string IDestination.GetId() => "Destination|OrderProvider"; + public OrderProvider(XmlNode xmlNode) { foreach (XmlNode node in xmlNode.ChildNodes) @@ -398,7 +402,7 @@ public override bool RunJob(Job job) sqlTransaction = Connection.BeginTransaction(); foreach (OrderDestinationWriter writer in writers) { - TotalRowsAffected += writer.MoveDataToMainTable(sqlTransaction, false, false); + writer.MoveDataToMainTable(sqlTransaction, false, false); } RemoveMissingRows(writers, sqlTransaction); From bb080a8f45ddc238f92d817fe5cbf714b717f717 Mon Sep 17 00:00:00 2001 From: Frederik Nielsen Date: Tue, 15 Oct 2024 10:23:27 +0200 Subject: [PATCH 2/3] Adding SchemaManagementCheck --- src/OrderProvider.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/OrderProvider.cs b/src/OrderProvider.cs index 2e5b251..bc28a14 100644 --- a/src/OrderProvider.cs +++ b/src/OrderProvider.cs @@ -236,7 +236,8 @@ void ISource.SaveAsXml(XmlTextWriter xmlTextWriter) xmlTextWriter.WriteElementString("DiscardDuplicates", DiscardDuplicates.ToString(CultureInfo.CurrentCulture)); xmlTextWriter.WriteElementString("RemoveMissingOrderLines", RemoveMissingOrderLines.ToString(CultureInfo.CurrentCulture)); xmlTextWriter.WriteElementString("SkipFailingRows", SkipFailingRows.ToString()); - (this as ISource).GetSchema().SaveAsXml(xmlTextWriter); + if (!Feature.IsActive()) + (this as ISource).GetSchema().SaveAsXml(xmlTextWriter); } void IDestination.SaveAsXml(XmlTextWriter xmlTextWriter) @@ -249,7 +250,8 @@ void IDestination.SaveAsXml(XmlTextWriter xmlTextWriter) xmlTextWriter.WriteElementString("DiscardDuplicates", DiscardDuplicates.ToString(CultureInfo.CurrentCulture)); xmlTextWriter.WriteElementString("RemoveMissingOrderLines", RemoveMissingOrderLines.ToString(CultureInfo.CurrentCulture)); xmlTextWriter.WriteElementString("SkipFailingRows", SkipFailingRows.ToString()); - (this as IDestination).GetSchema().SaveAsXml(xmlTextWriter); + if (!Feature.IsActive()) + (this as IDestination).GetSchema().SaveAsXml(xmlTextWriter); } public override void UpdateSourceSettings(ISource source) From 782967136a1459dbddd2badddd55b2feedba8ef1 Mon Sep 17 00:00:00 2001 From: frederik5480 Date: Thu, 17 Oct 2024 12:38:02 +0200 Subject: [PATCH 3/3] Update Dynamicweb.DataIntegration.Providers.OrderProvider.csproj --- src/Dynamicweb.DataIntegration.Providers.OrderProvider.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dynamicweb.DataIntegration.Providers.OrderProvider.csproj b/src/Dynamicweb.DataIntegration.Providers.OrderProvider.csproj index 2723692..2147887 100644 --- a/src/Dynamicweb.DataIntegration.Providers.OrderProvider.csproj +++ b/src/Dynamicweb.DataIntegration.Providers.OrderProvider.csproj @@ -1,6 +1,6 @@  - 10.8.0 + 10.8.1 1.0.0.0 Order Provider Order Provider