static object to access database - asp.net
<p>Hi
I am developing a web site
I have a class which is the connection to data base
The class consists a methods that write and read from the data base
Currently, the class is static and also its methods
I call the class from web pages like that:</p>

<pre><code>//mydbClass is the name of the class , not an object
mydbClass.getUserName(userID) 
</code></pre>

<p>The question is:
 Do I need to create a class object, so that each time user asking for a page 
 a new object is created and it communicates with the data base , like that:</p>

<pre><code>mydbClass mydb = new mydbClass();
mydb.getUserName(userID)
</code></pre>

<p>Because if I do not create a new object
 So all the users that read or write to the data base
 Will use the same static object, then it will be very busy and perhaps it will collapse
 I'd love an answer
 Thanks
micha</p>
