Example use of transactions in async method #1531
              
                
                  
                  
                    Answered
                  
                  by
                    bgrainger
                  
              
          
                  
                    
                      bsiewert-aya
                    
                  
                
                  asked this question in
                Q&A
              
            -
| Hello, I'm new to MySqlConnector and had a question about the use of transactions. I'm studying the example console application in the documentation found here: With this example below, can you provide a proper usage with transactions if I were to use the same task in the example console app but use a transaction to upsert records in each task? | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            bgrainger
          
      
      
        Dec 10, 2024 
      
    
    Replies: 1 comment
-
| You would use BeginTransactionAsync and CommitAsync. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        bsiewert-aya
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
You would use BeginTransactionAsync and CommitAsync.