Microsoft 企业库数据访问应用程序块线程安全吗?

发布于 2024-09-02 08:50:04 字数 121 浏览 5 评论 0原文

我似乎找不到任何有关线程安全的文档...

特别是 - Database 类(和子类)线程安全吗

?我如何自己找到这个问题? MSDN 站点上是否有关于类的线程安全的参考?

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

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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

℡Ms空城旧梦 2024-09-09 08:50:04

是的,Database 类的实例是线程安全的。但是,它创建的对象(例如 SqlDataReader)则不然。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文