摘要:
你可以使用C#的RNGCryptoServiceProvider类来生成随机的字节数组,然后将其转换为Base64编码的字符串作为JWT的秘钥。 using System; using System.Security.Cryptography; namespace YourNamespace { p 阅读全文
摘要:
1. 创建一个Config文件夹,再文件夹下创建一个类,我这点取名 DefaultValue.cs using Microsoft.OpenApi.Any; using Microsoft.OpenApi.Models; using Swashbuckle.AspNetCore.SwaggerGen 阅读全文
摘要:
安装 nuget:Microsoft.AspNetCore.Mvc.NewtonsoftJsonModel文件下创建的基类: namespace WebApiTest1.Model { public class Class { public long Id { get; set; } public 阅读全文
摘要:
官网: https://www.donet5.com/home/docunget安装包: SqlSugarCore 1.整体目录结构 2. DbContext.cs文件内容 using SqlSugar; using System.Diagnostics; using System.Reflecti 阅读全文