Skip to content

Commit

Permalink
更新 Pek.Common 包版本并添加 RouterName 属性
Browse files Browse the repository at this point in the history
在 `Pek.AspNetCore.csproj` 文件中,将 `Pek.Common` 包的版本从 `4.0.2024.1207-beta0606` 更新到 `4.0.2024.1209-beta0301`。

在 `DHSitemap.cs` 文件中,为 `DHSitemap` 类添加了一个新的属性 `RouterName`,用于指定路由名称。当有路由名称时,将会使用路由名称生成 URL。
  • Loading branch information
猿人易 committed Dec 9, 2024
1 parent 1174e5c commit 30b0c1d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Pek.AspNetCore/Pek.AspNetCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Pek.Common" Version="4.0.2024.1207-beta0606" />
<PackageReference Include="Pek.Common" Version="4.0.2024.1209-beta0301" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 5 additions & 0 deletions Pek.AspNetCore/Seo/DHSitemap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ public class DHSitemap : Attribute
/// </summary>
public String? ControllerName { get; set; }

/// <summary>
/// 路由名称。当有路由名称时,将会使用路由名称生成Url
/// </summary>
public String? RouterName { get; set; }

/// <summary>
/// 动作名称
/// </summary>
Expand Down

0 comments on commit 30b0c1d

Please sign in to comment.