diff --git a/src/Dynamicweb.DataIntegration.Providers.OrderProvider.csproj b/src/Dynamicweb.DataIntegration.Providers.OrderProvider.csproj index deb1f07..2f10a99 100644 --- a/src/Dynamicweb.DataIntegration.Providers.OrderProvider.csproj +++ b/src/Dynamicweb.DataIntegration.Providers.OrderProvider.csproj @@ -1,6 +1,6 @@  - 10.0.8 + 10.0.9 1.0.0.0 Order Provider Order Provider diff --git a/src/OrderProvider.cs b/src/OrderProvider.cs index 25e691c..6a70d1a 100644 --- a/src/OrderProvider.cs +++ b/src/OrderProvider.cs @@ -19,7 +19,7 @@ namespace Dynamicweb.DataIntegration.Providers.OrderProvider; [AddInName("Dynamicweb.DataIntegration.Providers.Provider"), AddInLabel("Order Provider"), AddInDescription("Order provider"), AddInIgnore(false)] -public class OrderProvider : BaseSqlProvider, ISource, IDestination, IParameterOptions +public class OrderProvider : BaseSqlProvider, IParameterOptions { private const string OrderCustomerAccessUserExternalId = "OrderCustomerAccessUserExternalId"; private Job job = null; diff --git a/src/OrderSourceReader.cs b/src/OrderSourceReader.cs index e25dc94..e0d8b6c 100644 --- a/src/OrderSourceReader.cs +++ b/src/OrderSourceReader.cs @@ -40,6 +40,12 @@ public OrderSourceReader(Mapping mapping, SqlConnection connection, bool exportN LoadReader(whereSql); } + public new void Write(Dictionary row) + { + base.Write(row); + Ecommerce.Services.Orders.ClearCache(Core.Converter.ToString(_reader["OrderId"])); + } + private void LoadReader(string whereSql) { try