上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: nuget dotnet add package Serilog.AspNetCore 配置Program.cs using System; using System.Collections.Generic; using System.IO; using System.Linq; using Sys 阅读全文
posted @ 2021-04-07 11:16 少年。 阅读(288) 评论(0) 推荐(0)
摘要: nugt包依赖 1.Microsoft.Extensions.Caching.Abstractions 2.Microsoft.Extensions.Caching.Memory 封装帮助类 添加类库Snblog.Cache 新建文件 Cache 新建帮助类 CacheManager.cs usin 阅读全文
posted @ 2021-04-06 14:28 少年。 阅读(548) 评论(0) 推荐(1)
摘要: 分析器包会通知你执行以下操作的任何控制器操作: 返回未声明的状态代码。 返回未声明的成功结果。 记录不返回的状态代码。 包含显式模型验证检查。 引用分析器包 在项目文件中包含 IncludeOpenAPIAnalyzers 属性: <PropertyGroup> <IncludeOpenAPIAna 阅读全文
posted @ 2021-04-06 14:15 少年。 阅读(121) 评论(0) 推荐(0)
摘要: # netCore中Swagger版本控制 ### 添加枚举类型 定义版本号 ```c# /// /// 版本控制 /// public enum ApiVersion { /// /// v1版本 /// V1 = 1, /// /// v2版本 /// V2 = 2 } ``` ### 注册服务 阅读全文
posted @ 2021-04-05 14:18 少年。 阅读(316) 评论(0) 推荐(0)
摘要: ### 仓储说明 SqlSugar5.0仓储模式可以让你的方法更加的规范,需要什么方法都封装到仓储中,下次就能重复使用,并且能很好的和你业务拆分开, 这种设计模式简单粗暴用起来也方便 官方文档:[仓储定义 - SqlSugar 5x - .NET果糖网 (donet5.com)](https://w 阅读全文
posted @ 2021-04-01 17:24 少年。 阅读(3309) 评论(0) 推荐(1)
摘要: 安装Nuget Install-Package MiniProfiler.AspNetCore.Mvc startup.cs #region MiniProfiler services.AddMiniProfiler(options => options.RouteBasePath = "/prof 阅读全文
posted @ 2021-03-29 16:38 少年。 阅读(467) 评论(0) 推荐(0)
摘要: nuget安装 Microsoft.AspNetCore.Authentication.JwtBearer 3.1.0 版本 appsettings.json "Authentication": { //jwt "JwtBearer": { "IsEnabled": "true", "Securit 阅读全文
posted @ 2021-02-26 13:39 少年。 阅读(1004) 评论(0) 推荐(0)
摘要: 创建 1 创建一个WebService的项目 2 添加Web服务(ASMX) 3 启动查看是否正常 实列 public class WebService1 : System.Web.Services.WebService { SoundPlayer player = new SoundPlayer( 阅读全文
posted @ 2021-02-05 15:21 少年。 阅读(97) 评论(0) 推荐(0)
摘要: 方案 let table = document.querySelector("body"); if (table) { table.setAttribute("style", "background-color:#f7f7f7"); } // document // .querySelector(" 阅读全文
posted @ 2021-02-05 15:18 少年。 阅读(1723) 评论(0) 推荐(0)
摘要: 1.安装 $ npm install --save nprogress $ yarn add nprogress 2.使用 App.vue <script lang="ts"> import NProgress from "nprogress"; import "nprogress/nprogres 阅读全文
posted @ 2021-02-05 15:16 少年。 阅读(442) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页