示例#1
0
        public override void Begin()
        {
            MySqlDatabase mySqlDatabase = this.database as MySqlDatabase;

            this.connection = new MySqlConnection(mySqlDatabase.ConnectionString);
            this.connection.Open();
            this.transaction = this.connection.BeginTransaction();
        }
示例#2
0
        public override async Task BeginAsync()
        {
            MySqlDatabase mySqlDatabase = this.database as MySqlDatabase;

            this.connection = new MySqlConnection(mySqlDatabase.ConnectionString);
            await this.connection.OpenAsync();

            this.transaction = await this.connection.BeginTransactionAsync();
        }
示例#3
0
 /// <summary>
 /// BeginTransction
 /// </summary>
 public void BeginTransaction()
 {
     Open();
     _sqlTran = MySqlConnection.BeginTransaction();
 }