public override void Begin() { MySqlDatabase mySqlDatabase = this.database as MySqlDatabase; this.connection = new MySqlConnection(mySqlDatabase.ConnectionString); this.connection.Open(); this.transaction = this.connection.BeginTransaction(); }
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(); }
/// <summary> /// BeginTransction /// </summary> public void BeginTransaction() { Open(); _sqlTran = MySqlConnection.BeginTransaction(); }