Hello Jassim,
Personally, I would choice to open/close the connection for every call. Always close connections as soon as you are done with them, so they underlying database connection can go back into the pool and be available for other callers. With the connection pool,
Closing/opening DbConnection doesn't affect your performance, but makes your code clean and stable - connection leaks are impossible in this case and it would not take much memory.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.