Is the Microsoft Enterprise Library Data Access Application Block thread safe?
-
03-10-2019 - |
문제
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?
해결책
Yes, instances of the Database
class are thread-safe. However, objects created by it (such as SqlDataReader
) are not.
제휴하지 않습니다 StackOverflow