By default, connections to the .NET database use collation . The call Close()also Dispose()simply releases the connection back to the pool; it does not actually make it close. In the end, it will exit the pool and will actually be closed.
After a little research, there seem to be two main ways that it can be predicted:
- MSDN:
, , .
:
, - , , flaky . , , " " ( ).
, , , , .