.NET 应用程序应该打开数据库连接多长时间?

How long should database connection be open in .NET application?

这是在采访中问到的问题,我想知道是否有任何硬性规定可以在一定时间内保持连接打开?

正确答案是"as shortest time possible because ado.net supports connection pooling and closed connections can be reused as long as the connection string is the same"