Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void someMethod(...){
- using (SqlConnection sqlCon = new SqlConnection(conStr))
- {
- using (var trans = sqlCon.BeginTransaction())
- {
- //something that uses trans/sqlCon
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement