Comments (8)
这个扩展很多地方在用 唯一的区别别的地方没用
锁。研究好几天了。不知道哪有问题。还不是必现。大分部场景是Mq 并发过来的。直接调用都么有问题
from chloe.
看不出问题原因,先不调用 FilterDeletedAndDisabled 方法,改成 query.Where(a=>a.IsDelete == false).Where(a=>a.IsEnabled == false) 试试看效果
from chloe.
from chloe.
看不出问题原因,先不调用 FilterDeletedAndDisabled 方法,改成 query.Where(a=>a.IsDelete == false).Where(a=>a.IsEnabled == false) 试试看效果
目前改成这样了 我在试试。就双11 出现过这样的问题。还是偶发性的。
from chloe.
出现那个异常有几种情况:
1 dbContext.Query《Entity》() Entity有IsDeleted属性,但配置了不映射数据库
2 IsDeleted属性映射了数据库,但使用如 dbContext.Query《Entity》().Select(a=> new Entity { Id = a.Id, Name = a.Name ... } ).Where(a=>a.IsDeleted ==true ) ,其中 Select lamda 里不包含 IsDeleted,后续Where又使用了 IsDeleted 属性也会报错
不过这两种用法的情况都是必现的,不会是偶发性。所以目测我也不好猜哪里的问题- -
from chloe.
出现那个异常有几种情况: 1 dbContext.Query《Entity》() Entity有IsDeleted属性,但配置了不映射数据库 2 IsDeleted属性映射了数据库,但使用如 dbContext.Query《Entity》().Select(a=> new Entity { Id = a.Id, Name = a.Name ... } ).Where(a=>a.IsDeleted ==true ) ,其中 Select lamda 里不包含 IsDeleted,后续Where又使用了 IsDeleted 属性也会报错
不过这两种用法的情况都是必现的,不会是偶发性。所以目测我也不好猜哪里的问题- -
from chloe.
我是研究了2天。无果才问得。之前都没有问题。最近双11 出现的。 没事我已经改了。双11 也过去了
from chloe.
怎么说?还出现这个异常吗?
from chloe.
Related Issues (20)
- GroupBy后如何排序? HOT 3
- 大数据量删除,针对如下代码操作,有优化建议吗? HOT 1
- 使用过程出现了ExecuteReader 要求已打开且可用的 Connection。连接的当前状态为打开。 HOT 2
- 有没有一个方法 可以看到执行的sql 语句 HOT 3
- An item with the same key has already been added. Key: server=...... HOT 3
- 想实现随机查询结果 HOT 1
- 如何查询字段长度大于5的数据 HOT 2
- 为啥我引用了Chloe还是会报错 HOT 1
- not in怎么用这个orm实现 HOT 4
- 查询数据抛出异常 HOT 3
- 子查询ToList() HOT 12
- a.Id HOT 2
- BUG 原生SQL查询,返回对象映射没有忽略掉[NotMapped]的属性 HOT 10
- Could not load file or assembly 'Microsoft.Data.SqlClient HOT 1
- 是否支持查看执行的sql语句 HOT 3
- mysql 查询报错 HOT 2
- 多表联合查询,能左边表select all吗 类似 sugarsql那样 HOT 7
- 临时切换ConnectionString HOT 3
- 是否考虑支持RemovePropertyHandler? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chloe.