08 2021 档案

摘要:转 https://www.tnblog.net/aojiancc/article/details/3284 阅读全文
posted @ 2021-08-22 23:48 lunawzh 阅读(204) 评论(0) 推荐(0)
摘要:出错 var applicationform = db.ApplicationForm.Where(x => applicationformids.Contains(x.id)); foreach (var item in applicationform) { var supply = realNe 阅读全文
posted @ 2021-08-22 19:27 lunawzh 阅读(908) 评论(0) 推荐(0)
摘要:页面中经常用到,记录一下 div <div id="cover"><img src="/images/loading.gif" style="width: 80px; height: 80px;"/></div> css #cover { position: absolute; left: 0px; 阅读全文
posted @ 2021-08-22 14:13 lunawzh 阅读(652) 评论(0) 推荐(0)
摘要:The LINQ expression 'DbSet<Supplies>() .Where(s => s.alarmState == "缺货") .Where(s => !(__invalidList_0 .Any(y => s.id == y.id)))' could not be transla 阅读全文
posted @ 2021-08-21 22:29 lunawzh 阅读(5057) 评论(1) 推荐(0)
摘要:简单的实现每天运行一次的定时器,执行时间放在数据库为了用户能方便随意修改。 一、使用System.Threading.Timer 实现方式,通过backgroundService后台任务,放入每1小时查看数据库中的时间一次,如果执行时间正好在1小时之内,就使用System.Threading.Tim 阅读全文
posted @ 2021-08-19 21:05 lunawzh 阅读(1530) 评论(0) 推荐(0)
摘要:有可能是: 可能是因为你的EntityModel中字段类型与数据表中字段的类型不一致引起的。 例如:Db(A某字段为Number类型) Entity(A某字段为string类型) 那么就会报错:System.InvalidCastException:“Specified cast is not va 阅读全文
posted @ 2021-08-19 14:54 lunawzh 阅读(995) 评论(0) 推荐(0)
摘要:转 https://www.cnblogs.com/luna-hehe/p/9146142.html 阅读全文
posted @ 2021-08-17 21:53 lunawzh 阅读(207) 评论(0) 推荐(0)
摘要:转: https://www.cnblogs.com/mq0036/p/9400268.html 阅读全文
posted @ 2021-08-17 20:38 lunawzh 阅读(882) 评论(0) 推荐(0)
摘要:使用DI读取配置,读取时声明类型有IOptions<T>、IOptionsMonitor<T>、IOtionsSnapshot<T>类型,推荐使用最后一种。 要读取的配置文件 jsconfig.json 如下,把属性改成始终复制。 { "Name": "wzh", "addr": "beijing" 阅读全文
posted @ 2021-08-10 13:36 lunawzh 阅读(139) 评论(0) 推荐(0)
摘要:错误: System.AggregateException:“Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: Microsoft.Ext 阅读全文
posted @ 2021-08-06 21:25 lunawzh 阅读(5310) 评论(0) 推荐(0)