Is the Microsoft Enterprise Library Data Access Ap

2019-08-02 21:17发布

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条回答
beautiful°
2楼-- · 2019-08-02 21:54

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

查看更多
登录 后发表回答