作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在使用 DbInterception 添加方法注册时,IDbCommandInterceptor 实例是否被认为是线程安全的?我已经实现了一个符合 IDbCommandInterceptor 接口(interface)的类,并且正在跟踪调用其中一个执行方法时命令的开始时间与调用相应的执行方法时的停止时间。我将此信息存储在私有(private) ivar 列表中,并且需要知道我正在做的事情是否安全。
最佳答案
事实证明,IDbCommandInterceptor 不是线程安全的,因为它只被实例化一次。
关于c# - EntityFramework 6 中的 IDbCommandInterceptor 是线程安全的吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20431659/
我是一名优秀的程序员,十分优秀!