欢迎莅临 SUN WU GANG 的园子!!!

世上无难事,只畏有心人。有心之人,即立志之坚午也,志坚则不畏事之不成。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 47 下一页

2021年11月23日

摘要: 学习资料:https://docs.microsoft.com/zh-cn/aspnet/core/client-side/bundling-and-minification?view=aspnetcore-6.0 ASP.NET MVC 捆绑和压缩——针对JS 和CSS。 捆绑:即可以把多个JS绑 阅读全文
posted @ 2021-11-23 15:50 sunwugang 阅读(82) 评论(0) 推荐(0) 编辑

2021年11月22日

摘要: --DictParam,表名称 declare @TableName sysname = 'DictParam' declare @Result varchar(max) = ' /// <summary> /// ' + @TableName + ' /// </summary> public c 阅读全文
posted @ 2021-11-22 18:21 sunwugang 阅读(415) 评论(0) 推荐(0) 编辑

摘要: Libman:库管理器(CSS/JS) ——类似 Nuget:包管理器(.NET) 库管理器(LibMan) 是一个轻量型客户端库获取工具。 LibMan 提供以下优势: 只会下载所需的库文件。 无需使用其他工具(例如Node.js、npm和WebPack),即可获取库中文件的子集。 可将文件放置在 阅读全文
posted @ 2021-11-22 18:19 sunwugang 阅读(124) 评论(0) 推荐(0) 编辑

摘要: C# .NET 5.0 ASP .NET CORE Web API 项目 问题:创建项目后,无法添加类、控制器 解决方式: 第一步:启动,Visual Studio Installer,如下所示: 第二步:单击修改 阅读全文
posted @ 2021-11-22 17:35 sunwugang 阅读(185) 评论(0) 推荐(0) 编辑

摘要: 解决C# .NET 5 Json 格式返回值首字母变小写 背景: 处理方法: 在Startup类的ConfigureServices()方法中进行配置,DefaultContractResolver() 原样输出,返回的 json 与后台定义一致 public void ConfigureServi 阅读全文
posted @ 2021-11-22 14:29 sunwugang 阅读(664) 评论(0) 推荐(0) 编辑

2021年11月20日

摘要: // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWeb 阅读全文
posted @ 2021-11-20 17:32 sunwugang 阅读(208) 评论(0) 推荐(0) 编辑

摘要: { "$schema": "http://json.schemastore.org/launchsettings.json", "iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "iis 阅读全文
posted @ 2021-11-20 16:11 sunwugang 阅读(308) 评论(0) 推荐(0) 编辑

2021年11月18日

摘要: 基于VS2019,使用步骤: 方式一: 第一步:appsettings.json 定义配置项,可理解为定义对象属性,eg: { "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsof 阅读全文
posted @ 2021-11-18 09:46 sunwugang 阅读(1686) 评论(0) 推荐(0) 编辑

2021年11月3日

摘要: public string GetMacAdd(string str = "") { string mac = null; string strMac = string.Empty; try { ManagementObjectSearcher query = new ManagementObjec 阅读全文
posted @ 2021-11-03 09:27 sunwugang 阅读(141) 评论(0) 推荐(0) 编辑

2021年10月8日

摘要: 数据脱敏,此处以姓名、身份证为例 /// <summary> /// 姓名敏感处理 /// </summary> /// <param name="fullName">姓名</param> /// <returns>脱敏后的姓名</returns> public string SetSensitiv 阅读全文
posted @ 2021-10-08 17:24 sunwugang 阅读(1830) 评论(0) 推荐(0) 编辑

上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 47 下一页