上一页 1 2 3 4 5 6 ··· 29 下一页
摘要: $(document).keyup(function(event){ if(event.keyCode ==13){ $("#btnOk").trigger("click"); } 阅读全文
posted @ 2022-02-04 09:17 lunawzh 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 安装pymysql: pip install pymysql 操作: import pymysql as db conn=db.connect(host='192.168.73.131',user='wzh',passwd='123456',port=3306,database='TestDB',c 阅读全文
posted @ 2021-11-18 16:24 lunawzh 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 表示用于管理资源访问的锁定状态,可实现多线程读取或进行独占式写入访问 ReaderWriterLockSlim 类支持三种锁定模式:Read,Write,UpgradeableRead。这三种模式对应的方法分别是 EnterReadLock,EnterWriteLock,EnterUpgradeab 阅读全文
posted @ 2021-11-05 11:12 lunawzh 阅读(1049) 评论(0) 推荐(0) 编辑
摘要: 执行非查询原生SQL string msg = "内容"; await db.Database.ExecuteSqlInterpolatedAsync($"delete from comments where title={msg}"); 实体相关的查询SQL , FromSqlInterpolat 阅读全文
posted @ 2021-11-04 23:09 lunawzh 阅读(928) 评论(0) 推荐(0) 编辑
摘要: this.selected = list.filter(x => !this.selected.includes(x)); 阅读全文
posted @ 2021-10-08 00:21 lunawzh 阅读(1421) 评论(0) 推荐(0) 编辑
摘要: 转 https://www.tnblog.net/aojiancc/article/details/3284 阅读全文
posted @ 2021-08-22 23:48 lunawzh 阅读(194) 评论(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 阅读(779) 评论(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 阅读(604) 评论(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 阅读(4130) 评论(1) 推荐(0) 编辑
摘要: 简单的实现每天运行一次的定时器,执行时间放在数据库为了用户能方便随意修改。 一、使用System.Threading.Timer 实现方式,通过backgroundService后台任务,放入每1小时查看数据库中的时间一次,如果执行时间正好在1小时之内,就使用System.Threading.Tim 阅读全文
posted @ 2021-08-19 21:05 lunawzh 阅读(1133) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 29 下一页