B
Ben Ong
Hi,
I created a singleton class in my .NET app to solely handle opening and
closing a connection to my database. I was wondering if this is a
good design or not. And can someone confirm with me: that a singleton
class has only one instance of itself correct? So if i have multiple
users using the same app and they connect through my database
connection class, will only one of the users be able to connect to the
db at a time?
thanks,
ben.
I created a singleton class in my .NET app to solely handle opening and
closing a connection to my database. I was wondering if this is a
good design or not. And can someone confirm with me: that a singleton
class has only one instance of itself correct? So if i have multiple
users using the same app and they connect through my database
connection class, will only one of the users be able to connect to the
db at a time?
thanks,
ben.