Is the Microsoft Enterprise Library Data Access Application Block thread safe?

匆匆过客 提交于 2019-12-13 18:33:07

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/2872023/is-the-microsoft-enterprise-library-data-access-application-block-thread-safe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!