摘要: 在for循环里,有8w数据,结果需要10+分钟才遍历完(生产环境下),结果发现导致耗时的代码如下 try { ritem.Qty = Convert.ToDecimal(value); } catch(Exception e) { Logger.Info(e.ToString()); ritem.Q 阅读全文
posted @ 2023-12-21 14:29 Cody& 阅读(189) 评论(0) 推荐(0)
摘要: 在html的select元素添加了onchange事件,changeContent方法也在当前html下。 <select id="changeLanguage" class="form-control input-lg" asp-for="language" asp-items="Model.su 阅读全文
posted @ 2023-12-06 09:16 Cody& 阅读(135) 评论(0) 推荐(0)
摘要: 在ubuntu(18.04)运行OpenCvSharp4(4.6.0)报错如下: Microsoft.AspNetCore.Server.Kestrel[13] Connection id "0HMJAMSQJ3RO8", Request id "0HMJAMSQJ3RO8:00000005": A 阅读全文
posted @ 2022-07-23 10:50 Cody& 阅读(2913) 评论(0) 推荐(0)
摘要: 1、新建interface public interface ISoftDelete { public bool isdeleted { get; set; } } 2、需要使用到软删除的entity要继承这个interface 3、然后在DBContext的OnModelCreating中为每个继 阅读全文
posted @ 2022-07-09 16:26 Cody& 阅读(472) 评论(0) 推荐(0)
摘要: 使用的是python的msgtopdf包,只能在window环境下使用 pip install msgtopdf 还需要安装wkhtmltopdf,下载地址: https://wkhtmltopdf.org/downloads.html 安装后,在window设置wkhtmltopdf的环境变量,在 阅读全文
posted @ 2022-03-08 10:11 Cody& 阅读(775) 评论(0) 推荐(0)
摘要: 部署第二个neo4j时,报错如下: ERROR Failed to start Neo4j on dbms.connector.http.listen_address, a socket address. If missing port or hostname it is acquired from 阅读全文
posted @ 2022-02-21 17:13 Cody& 阅读(328) 评论(0) 推荐(0)
摘要: 按照文档设置启用了压缩,https://docs.microsoft.com/zh-cn/aspnet/core/blazor/host-and-deploy/webassembly?view=aspnetcore-6.0 ,但还是加载.dll文件(如下图),加载资源大小跟未压缩一样 解决方法: 需 阅读全文
posted @ 2021-12-26 10:43 Cody& 阅读(385) 评论(0) 推荐(2)
摘要: 调试看出在执行dotnet.6.0.0.fof53xxcmn.js时出现ReferenceError: Cant find variable: globalThis错误 加入下面代码即可 <script> !function(t){function e(){var e=this||self;e.gl 阅读全文
posted @ 2021-12-23 17:06 Cody& 阅读(621) 评论(0) 推荐(0)
摘要: 报错详细信息如下: System.InvalidOperationException: Property 'JsonResult.SerializerSettings' must be an instance of type 'System.Text.Json.JsonSerializerOptio 阅读全文
posted @ 2021-02-03 10:38 Cody& 阅读(1293) 评论(0) 推荐(0)
摘要: 1、 “HttpContent”未包含“ReadAsAsync”的定义,并且找不到可接受第一个“HttpContent”类型参数的可访问扩展方法“ReadAsAsync”(是否缺少 using 指令或程序集引用?) 方法:引用Microsoft.AspNet.WebApi.Client 2、 “IC 阅读全文
posted @ 2021-01-28 15:51 Cody& 阅读(492) 评论(0) 推荐(0)