kebab-case-route-tokens:ASP.NET Core模型约定将路由令牌转换为kebab案例URL

时间:2021-04-29 23:22:40
【文件属性】:
文件名称:kebab-case-route-tokens:ASP.NET Core模型约定将路由令牌转换为kebab案例URL
文件大小:13KB
文件格式:ZIP
更新时间:2021-04-29 23:22:40
C# 烤肉串案例路由令牌 ASP.NET Core模型约定将路由令牌转换为kebab案例URL dotnet add package Sgw.KebabCaseRouteTokens 目的 当您通常使用Microsoft.AspNetCore.Mvc.RouteAttribute类型来注释控制器和操作时,可以在路由路径中使用令牌。 例子: [ Route ( " api/[controller] " )] public class UserRegistrationController { [ HttpPost ] [ Route ( " [action] " )] public ActionResult CreateNewUserRegistration ( UserRegistration registration ) { // ...
【文件预览】:
kebab-case-route-tokens-master
----KebabCaseRouteTokens.sln(3KB)
----LICENSE(1KB)
----Sgw.KebabCaseRouteTokens.Tests()
--------ControllerModelConventiontests.cs(2KB)
--------Sgw.KebabCaseRouteTokens.Tests.csproj(822B)
--------ActionModelConventionTests.cs(3KB)
----README.md(3KB)
----Sgw.KebabCaseRouteTokens()
--------KebabCaseRouteTokenReplacementControllerModelConvention.cs(1KB)
--------KebabCaseRouteTokenReplacementActionModelConvention.cs(3KB)
--------Sgw.KebabCaseRouteTokens.csproj(1KB)
--------Kebaberizer.cs(922B)
----.editorconfig(14KB)
----.gitignore(4KB)

网友评论