摘要:
一.数据查询 基础查询: select column1,column2 from table 条件查询: select column1,column2 from table where id = 1 select column1,column2 from table where id = 1 and 阅读全文
摘要:
1. 返回结果通用化在common文件中新建ApiResult.cs文件用于实现返回结果通用化 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Thr 阅读全文
摘要:
在当前项目下新建Utility文件夹,Utility文件夹下面在创建SwaggerExt文件夹,文档结果如下 CustomSwaggerExt.cs文件如下 using Microsoft.Extensions.Options; using Microsoft.OpenApi.Models; nam 阅读全文
摘要:
using IdentityServer.Models; using System.Collections.Generic; namespace IdentityServer.Service { /// <summary> /// 获取模版数据 /// </summary> public class 阅读全文
摘要:
官网: https://learn.microsoft.com/zh-cn/ef/core/querying/related-data/eager预先加载的使用: 关联两张表查询 using (var context = new BloggingContext()) { var blogs = co 阅读全文