Automation23
Member
- Joined
- Jul 13, 2022
- Messages
- 7
- Programming Experience
- 1-3
Hello everyone!
I have two separate methods that open the connection and close it. But I need to implement a using statement. How can I establish the connection with a ‘using’ statement, so then I can implement database methods, validate the results, and then close/dispose the connection?
Thank you in advance!
I have two separate methods that open the connection and close it. But I need to implement a using statement. How can I establish the connection with a ‘using’ statement, so then I can implement database methods, validate the results, and then close/dispose the connection?
Thank you in advance!