上一页 1 2 3 4 5 6 7 ··· 44 下一页
摘要: 一.数据查询 基础查询: select column1,column2 from table 条件查询: select column1,column2 from table where id = 1 select column1,column2 from table where id = 1 and 阅读全文
posted @ 2025-04-11 11:02 龙卷风吹毁停车场 阅读(72) 评论(0) 推荐(0)
摘要: 报错信息: 当前标识(IIS APPPOOL\old-wolfnestpc)没有对“C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files”的写访问权限。 解决方法一: 打开 Windows 资源管理器,导航到: 阅读全文
posted @ 2025-04-10 11:17 龙卷风吹毁停车场 阅读(447) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-04-09 21:57 龙卷风吹毁停车场 阅读(27) 评论(0) 推荐(0)
摘要: 1. 返回结果通用化在common文件中新建ApiResult.cs文件用于实现返回结果通用化 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Thr 阅读全文
posted @ 2025-03-21 22:46 龙卷风吹毁停车场 阅读(133) 评论(0) 推荐(0)
摘要: 在当前项目下新建Utility文件夹,Utility文件夹下面在创建SwaggerExt文件夹,文档结果如下 CustomSwaggerExt.cs文件如下 using Microsoft.Extensions.Options; using Microsoft.OpenApi.Models; nam 阅读全文
posted @ 2025-03-20 22:16 龙卷风吹毁停车场 阅读(85) 评论(0) 推荐(0)
摘要: using IdentityServer.Models; using System.Collections.Generic; namespace IdentityServer.Service { /// <summary> /// 获取模版数据 /// </summary> public class 阅读全文
posted @ 2025-03-19 09:39 龙卷风吹毁停车场 阅读(39) 评论(0) 推荐(0)
摘要: 在实现这个需求的时候这里有个大坑, 不知道是我自己框架搭得有问题,还是什么问题. 在 Razor模型中无法使用 System.IO, 左试右试,搞了半天, 你是大哥,最后放弃在Razor模型中读取wwwroot里面的配置文件, 我去其它地方写还不行哟, 然后我就在当前解决方案下新建了一个Servic 阅读全文
posted @ 2025-03-18 17:37 龙卷风吹毁停车场 阅读(37) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-03-17 21:44 龙卷风吹毁停车场 阅读(28) 评论(0) 推荐(0)
摘要: 官网: https://learn.microsoft.com/zh-cn/ef/core/querying/related-data/eager预先加载的使用: 关联两张表查询 using (var context = new BloggingContext()) { var blogs = co 阅读全文
posted @ 2025-03-16 20:09 龙卷风吹毁停车场 阅读(22) 评论(0) 推荐(0)
摘要: 定义模型: namespace House.Models.PublicClass { /// <summary> /// 城市 /// </summary> public class Province { /// <summary> /// 城市编号 /// </summary> /// [Key] 阅读全文
posted @ 2025-03-16 11:24 龙卷风吹毁停车场 阅读(102) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 44 下一页