/// <summary> /// Migrates a script using the configured <see cref="SqlConnection"/> asynchronously. /// </summary> /// <param name="script">The script to migrate.</param> public async Task MigrateAsync(string script) { _sqlCommandExecuter = new SqlCommandExecuter(SqlConnection); try { await _sqlCommandExecuter.ExecuteAsync(script); } catch (Exception) { throw; } }
/// <summary> /// Migrates a script using the configured <see cref="SqlConnection"/>. /// </summary> /// <param name="script">The script to migrate.</param> public void Migrate(string script) { _sqlCommandExecuter = new SqlCommandExecuter(SqlConnection); try { _sqlCommandExecuter.Execute(script); } catch (Exception) { throw; } }