Hi
I am trying to figure out what the best practise is for handling database connections in a C# application. I have already designed my application with seperate classes responsible for the business logic and the database access.
I am thinking that I would be best to have a single database connection defined, which could then be shared amongst all of the table classes that need it. Are there any issues with this?
I will be grateful for any response at all to this question!
I am trying to figure out what the best practise is for handling database connections in a C# application. I have already designed my application with seperate classes responsible for the business logic and the database access.
I am thinking that I would be best to have a single database connection defined, which could then be shared amongst all of the table classes that need it. Are there any issues with this?
I will be grateful for any response at all to this question!