Skip to content

Commit

Permalink
Added override to SqlSourceReader.Write in OrderSourceReader to clear…
Browse files Browse the repository at this point in the history
… cache when it is done writing the response mappings. removed not needed use of interfaces in OrderProvider. Bump version to 10.0.9
  • Loading branch information
MatthiasSort committed Nov 13, 2023
1 parent f86b4ca commit 370b15d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>10.0.8</Version>
<Version>10.0.9</Version>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<Title>Order Provider</Title>
<Description>Order Provider</Description>
Expand Down
2 changes: 1 addition & 1 deletion src/OrderProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions src/OrderSourceReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ public OrderSourceReader(Mapping mapping, SqlConnection connection, bool exportN
LoadReader(whereSql);
}

public new void Write(Dictionary<string, object> row)
{
base.Write(row);
Ecommerce.Services.Orders.ClearCache(Core.Converter.ToString(_reader["OrderId"]));
}

private void LoadReader(string whereSql)
{
try
Expand Down

0 comments on commit 370b15d

Please sign in to comment.