会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lunawzh
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
29
下一页
2022年2月4日
jQuery实现的回车触发按钮事件
摘要: $(document).keyup(function(event){ if(event.keyCode ==13){ $("#btnOk").trigger("click"); }
阅读全文
posted @ 2022-02-04 09:17 lunawzh
阅读(202)
评论(0)
推荐(0)
2021年11月18日
python 对 mysql 操作
摘要: 安装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
阅读(29)
评论(0)
推荐(0)
2021年11月5日
c#读写锁ReaderWriterLockSlim
摘要: 表示用于管理资源访问的锁定状态,可实现多线程读取或进行独占式写入访问 ReaderWriterLockSlim 类支持三种锁定模式:Read,Write,UpgradeableRead。这三种模式对应的方法分别是 EnterReadLock,EnterWriteLock,EnterUpgradeab
阅读全文
posted @ 2021-11-05 11:12 lunawzh
阅读(1153)
评论(0)
推荐(0)
2021年11月4日
EFCore使用SQL语句
摘要: 执行非查询原生SQL string msg = "内容"; await db.Database.ExecuteSqlInterpolatedAsync($"delete from comments where title={msg}"); 实体相关的查询SQL , FromSqlInterpolat
阅读全文
posted @ 2021-11-04 23:09 lunawzh
阅读(975)
评论(0)
推荐(0)
2021年10月8日
Vue 中取反
摘要: this.selected = list.filter(x => !this.selected.includes(x));
阅读全文
posted @ 2021-10-08 00:21 lunawzh
阅读(1441)
评论(0)
推荐(0)
2021年8月22日
Cannot access a disposed object. A common cause of this error is disposing
摘要: 转 https://www.tnblog.net/aojiancc/article/details/3284
阅读全文
posted @ 2021-08-22 23:48 lunawzh
阅读(204)
评论(0)
推荐(0)
System.InvalidOperationException:“This MySqlConnection is already in use. See https://fl.vu/mysql-conn-reuse”
摘要: 出错 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)
jquery 添加 遮罩层
摘要: 页面中经常用到,记录一下 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
阅读(653)
评论(0)
推荐(0)
2021年8月21日
could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable',
摘要: 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)
2021年8月19日
netcore 后台任务 指定每天某一时间执行任务
摘要: 简单的实现每天运行一次的定时器,执行时间放在数据库为了用户能方便随意修改。 一、使用System.Threading.Timer 实现方式,通过backgroundService后台任务,放入每1小时查看数据库中的时间一次,如果执行时间正好在1小时之内,就使用System.Threading.Tim
阅读全文
posted @ 2021-08-19 21:05 lunawzh
阅读(1530)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
29
下一页
公告