c# - Dispose the connection or Close the connection -


Which of the following two ways is better performance?

  (var db_Connection_s = new DBC connection ()) {// todo: conversation with database connection}   

or simply:

  DB_Connection_s.Close ();   

Finally.

What makes the concept of pooling unusable? Because if I settle the connection with each use, then I will have to open a new connection every time (and there will be no connection to the pool).

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -