views:

114

answers:

1

We are using Entity Framework 1.0.

In some cases we need to explicitly open connections, and then need to explicitly close connections. See http://msdn.microsoft.com/en-us/library/bb738582.aspx

My question is, when we call "close" does the connection actually get closed, or is it just returned to the connection pool?

+1  A: 

No when you call close it will return to the pool.

If you want to "free" the pool aka term connections use ClearAllPools

MSDN on connection pooling, it always helps when i reference that.

Nix