Ejemplo n.º 1
0
 /// <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;
     }
 }
Ejemplo n.º 2
0
 /// <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;
     }
 }