Connection Management ASP.net
问题 How do you manage your database connections in your ASP.Net application? My understanding tells me the "best" way is to open a connection, make a query, close the connection - and do that multiple times because connection pooling makes the cost negligable. The problem comes when I have a DAL where each method looks after its own connection. E.G. User x = DAL.GetUserDetails(); Customer y = DAL.GetCustomer(); This is fine until we start talking about TransactionScope using (TransactionScope t..