What are best practices on managing database connections in .NET?
问题 Regarding best practice for managing database connections in a .NET application -- I know that, in general, it's bad to pass around a connection object. However, I have some specific curiosities: 1. I have two instances of business objects, of different classes, in a parent-child relationship (the child is private.) Which of the following is best? Keep one private static connection open and shared, used by both objects, and left open until the parent is disposed. Keep two private static