关于EF Core 生成数据库表的实体模型(Entity)和前端提交数据的校验模型(DTO/Input Model) Post author:神之眼 Post published:2026年4月8日 Post category:ASP.NET Core Post comments:0评论 最佳实践: 强烈推荐将 EF Core 生成数据库表的实体模… 继续阅读关于EF Core 生成数据库表的实体模型(Entity)和前端提交数据的校验模型(DTO/Input Model)
在 .NET 10 中,让 Swagger(或 Scalar)接口请求默认自动携带 JWT Token 的完整方案 Post author:神之眼 Post published:2026年4月1日 Post category:ASP.NET Core Post comments:0评论 常见的需求: 一次在 UI 中输入 JWT Token 后,… 继续阅读在 .NET 10 中,让 Swagger(或 Scalar)接口请求默认自动携带 JWT Token 的完整方案
在.NET 10 WebAPI 项目中恢复启用 Swagger, 但.NET 10 更加推荐使用Scalar UI Post author:神之眼 Post published:2026年3月31日 Post category:ASP.NET Core Post comments:0评论 Swagger 在 .NET 10 LTS 中默认不见了 从… 继续阅读在.NET 10 WebAPI 项目中恢复启用 Swagger, 但.NET 10 更加推荐使用Scalar UI
关于.NET 10 中跨域请求设置的 setPreflightMaxAge(TimeSpan.FromMinutes(30))方法 Post author:神之眼 Post published:2026年3月12日 Post category:ASP.NET Core Post comments:0评论 corsPolicyBuilder.AllowAnyOrig… 继续阅读关于.NET 10 中跨域请求设置的 setPreflightMaxAge(TimeSpan.FromMinutes(30))方法
一些有用的.NET CLI 命令 Post author:神之眼 Post published:2025年8月4日 Post category:ASP.NET Core Post comments:0评论 .NET CLI 拥有以下作用于当前文件夹中项目的命令,使… 继续阅读一些有用的.NET CLI 命令
执行命令dotnet ef migrations add报错, Could not execute because the specified command or file was not found. —解决方案 Post author:神之眼 Post published:2024年4月24日 Post category:ASP.NET Core Post comments:0评论 环境: MacOS, Rider 2024, NET 8.0… 继续阅读执行命令dotnet ef migrations add报错, Could not execute because the specified command or file was not found. —解决方案
In NET 6, to handle different platforms is to use conditional compilation statements Post author:神之眼 Post published:2022年6月4日 Post category:ASP.NET Core Post comments:0评论 There are four preprocessor di… 继续阅读In NET 6, to handle different platforms is to use conditional compilation statements
Visual Studio 注释/反注释单行代码的快捷键 Post author:神之眼 Post published:2022年5月19日 Post category:ASP.NET Core Post comments:0评论 注释: 先CTRL+K,然后CTRL+C 取消注释: 先CT… 继续阅读Visual Studio 注释/反注释单行代码的快捷键
IdentityServer4 4.x 请求access_token返回invalid_request问题 Post author:神之眼 Post published:2021年4月10日 Post category:ASP.NET Core Post comments:0评论 环境版本: Net5, IdentityServer4 4.… 继续阅读IdentityServer4 4.x 请求access_token返回invalid_request问题
System.InvalidCastException: Unable to cast object of type ‘System.String’ to type ‘System.Guid’ 问题解决方法 Post author:神之眼 Post published:2021年3月16日 Post category:ASP.NET Core Post comments:3评论 PM> Update-Database Build star… 继续阅读System.InvalidCastException: Unable to cast object of type ‘System.String’ to type ‘System.Guid’ 问题解决方法