上一页 1 2 3 4 5 6 7 ··· 44 下一页
摘要: 阅读全文
posted @ 2025-04-09 21:57 龙卷风吹毁停车场 阅读(22) 评论(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 龙卷风吹毁停车场 阅读(123) 评论(0) 推荐(0)
摘要: 在当前项目下新建Utility文件夹,Utility文件夹下面在创建SwaggerExt文件夹,文档结果如下 CustomSwaggerExt.cs文件如下 using Microsoft.Extensions.Options; using Microsoft.OpenApi.Models; nam 阅读全文
posted @ 2025-03-20 22:16 龙卷风吹毁停车场 阅读(67) 评论(0) 推荐(0)
摘要: using IdentityServer.Models; using System.Collections.Generic; namespace IdentityServer.Service { /// <summary> /// 获取模版数据 /// </summary> public class 阅读全文
posted @ 2025-03-19 09:39 龙卷风吹毁停车场 阅读(27) 评论(0) 推荐(0)
摘要: 在实现这个需求的时候这里有个大坑, 不知道是我自己框架搭得有问题,还是什么问题. 在 Razor模型中无法使用 System.IO, 左试右试,搞了半天, 你是大哥,最后放弃在Razor模型中读取wwwroot里面的配置文件, 我去其它地方写还不行哟, 然后我就在当前解决方案下新建了一个Servic 阅读全文
posted @ 2025-03-18 17:37 龙卷风吹毁停车场 阅读(26) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-03-17 21:44 龙卷风吹毁停车场 阅读(17) 评论(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 龙卷风吹毁停车场 阅读(14) 评论(0) 推荐(0)
摘要: 定义模型: namespace House.Models.PublicClass { /// <summary> /// 城市 /// </summary> public class Province { /// <summary> /// 城市编号 /// </summary> /// [Key] 阅读全文
posted @ 2025-03-16 11:24 龙卷风吹毁停车场 阅读(96) 评论(0) 推荐(0)
摘要: 在app.vue中全局引入css文件 <style> @import "./static/css/reset.css"; @import "./static/css/flex-class.css"; @import "./static/css/margin-class.css"; /*每个页面公共c 阅读全文
posted @ 2025-02-28 15:37 龙卷风吹毁停车场 阅读(160) 评论(0) 推荐(0)
摘要: 方式一, 在vite.confing.mts中增加: 注意: 开发环境也会被清除 esbuild: { drop: ['console', 'debugger'], }, 详细代码: import { defineConfig } from '@vben/vite-config'; import E 阅读全文
posted @ 2025-02-27 10:48 龙卷风吹毁停车场 阅读(782) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 44 下一页