T
Terry Jolly
Web Solution
Goal: Have a global database connection
Why: (There will be 30+ tables, represented by 30+ classes) I only want to
reference the database connection once.
I put the connection string in the web.config.
I created a class with a static database connection and the class opens and
closes the database.
This seems to work so the question: Is there a better way to handle the
database connection?
Thanks In Advance.
Goal: Have a global database connection
Why: (There will be 30+ tables, represented by 30+ classes) I only want to
reference the database connection once.
I put the connection string in the web.config.
I created a class with a static database connection and the class opens and
closes the database.
This seems to work so the question: Is there a better way to handle the
database connection?
Thanks In Advance.