是微软企业库数据访问应用程序块线程安全的? [英] Is the Microsoft Enterprise Library Data Access Application Block thread safe?

查看:156
本文介绍了是微软企业库数据访问应用程序块线程安全的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法找到有关线程安全的任何文件...

I can't seem to find any documentation regarding thread safety...

在特别 - 是数据库类(和子类)线程安全的。

In particular - is the Database class (and subclasses) thread safe

我怎么会发现这一点为自己?是否有参考线程安全的类在MSDN网站?

How would I find this out for myself? Are there references to thread safety for classes on the MSDN site?

推荐答案

是的,数据库类的实例是线程安全的。然而,它创建的对象(如 SqlDataReader的)都没有。

Yes, instances of the Database class are thread-safe. However, objects created by it (such as SqlDataReader) are not.

这篇关于是微软企业库数据访问应用程序块线程安全的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆