08 2020 档案

摘要:datetime空值转换 创建转换器 DateTimeNullJsonConvert.cs /// <summary> /// datetime 空值转换 /// </summary> public class DateTimeNullJsonConvert : JsonConverter<Null 阅读全文
posted @ 2020-08-27 09:33 青杉 阅读(256) 评论(0) 推荐(0)
摘要:使用NLog记录日志 手动或使用NuGet在csproj中添加依赖项 安装最新版本: NLog.Web.AspNetCore 4.9+ 如有可能,更新NLog软件包 创建nlog.config文件。 在项目的根目录中创建nlog.config(全部小写)文件。 我们使用以下示例: <?xml ver 阅读全文
posted @ 2020-08-27 09:31 青杉 阅读(550) 评论(5) 推荐(1)
摘要:使用Docx.Core创建word表格 下载DocxCore Nuget包 当前版本 1.0.7 Install-Package DocxCore -Version 1.0.7 创建表格参数 TableDto.cs /// <summary> /// 表格 /// </summary> public 阅读全文
posted @ 2020-08-20 10:47 青杉 阅读(1271) 评论(3) 推荐(1)
摘要:mysql常用命令 添加表字段 alter table table1 add transactor varchar(10) not Null; alter table table1 add id int unsigned not Null auto_increment primary key 修改某 阅读全文
posted @ 2020-08-05 11:32 青杉 阅读(122) 评论(0) 推荐(0)
摘要:问题1 无法执行删除或修改命令 Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable saf 阅读全文
posted @ 2020-08-05 11:30 青杉 阅读(182) 评论(0) 推荐(0)