Skip to content

Commit 372bc58

Browse files
authored
Support for OrchardCore v1.5.0 (#7)
Update Nuget packages
1 parent c96122f commit 372bc58

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

Neolution.OrchardCoreModules.PageViewStats/Controllers/CountPageViewController.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ public class CountPageViewController : Controller
2626

2727
private readonly ISession session;
2828
private readonly IDbConnectionAccessor dbConnectionAccessor;
29+
private readonly IStore store;
2930
private readonly ISiteService siteService;
3031
private readonly IBotDetector botDetector;
3132

32-
public CountPageViewController(ISession session, IDbConnectionAccessor dbConnectionAccessor, ISiteService siteService, IBotDetector botDetector)
33+
public CountPageViewController(ISession session, IDbConnectionAccessor dbConnectionAccessor, IStore store, ISiteService siteService, IBotDetector botDetector)
3334
{
3435
this.session = session;
3536
this.dbConnectionAccessor = dbConnectionAccessor;
37+
this.store = store;
3638
this.siteService = siteService;
3739
this.botDetector = botDetector;
3840

@@ -76,7 +78,7 @@ public async Task<ActionResult> IndexPost(string contentItemId)
7678
await using var connection = this.dbConnectionAccessor.CreateConnection();
7779

7880
var insertCmd =
79-
$"INSERT INTO {dialect.QuoteForTableName(table)} (" +
81+
$"INSERT INTO {dialect.QuoteForTableName(table, this.store.Configuration.Schema)} (" +
8082
$" {dialect.QuoteForColumnName(nameof(PageView.Id))}, " +
8183
$" {dialect.QuoteForColumnName(nameof(PageView.CreatedUtc))}, " +
8284
$" {dialect.QuoteForColumnName(nameof(PageView.ContentItemId))}, " +

Neolution.OrchardCoreModules.PageViewStats/Neolution.OrchardCoreModules.PageViewStats.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
</ItemGroup>
2525

2626
<ItemGroup>
27-
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="10.0.1" />
28-
<PackageReference Include="OrchardCore.Admin" Version="1.3.0" />
29-
<PackageReference Include="OrchardCore.Autoroute" Version="1.3.0" />
30-
<PackageReference Include="OrchardCore.Module.Targets" Version="1.3.0" />
31-
<PackageReference Include="OrchardCore.ContentManagement" Version="1.3.0" />
32-
<PackageReference Include="OrchardCore.ContentTypes.Abstractions" Version="1.3.0" />
33-
<PackageReference Include="OrchardCore.DisplayManagement" Version="1.3.0" />
27+
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="11.0.0" />
28+
<PackageReference Include="OrchardCore.Admin" Version="1.5.0" />
29+
<PackageReference Include="OrchardCore.Autoroute" Version="1.5.0" />
30+
<PackageReference Include="OrchardCore.Module.Targets" Version="1.5.0" />
31+
<PackageReference Include="OrchardCore.ContentManagement" Version="1.5.0" />
32+
<PackageReference Include="OrchardCore.ContentTypes.Abstractions" Version="1.5.0" />
33+
<PackageReference Include="OrchardCore.DisplayManagement" Version="1.5.0" />
3434
</ItemGroup>
3535

3636
<ItemGroup>

PageViewStats.UnitTests/PageViewStats.UnitTests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
16+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
1717
<PackageReference Include="Shouldly" Version="4.1.0" />
1818
<PackageReference Include="xunit" Version="2.4.2" />
1919
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
2020
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2121
<PrivateAssets>all</PrivateAssets>
2222
</PackageReference>
23-
<PackageReference Include="coverlet.collector" Version="3.1.2">
23+
<PackageReference Include="coverlet.collector" Version="3.2.0">
2424
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2525
<PrivateAssets>all</PrivateAssets>
2626
</PackageReference>

0 commit comments

Comments
 (0)