public SchemaBuilder ExecuteSql(string sql, Action<SqlStatementCommand> statement = null) { var sqlStatmentCommand = new SqlStatementCommand(sql); if ( statement != null ) { statement(sqlStatmentCommand); } Run(sqlStatmentCommand); return this; }
public SchemaBuilder ExecuteSql(string sql, Action <SqlStatementCommand> statement = null) { var sqlStatmentCommand = new SqlStatementCommand(sql); if (statement != null) { statement(sqlStatmentCommand); } Run(sqlStatmentCommand); return(this); }
public SchemaBuilder ExecuteSql(string sql, Action<SqlStatementCommand> statement = null) { try { var sqlStatmentCommand = new SqlStatementCommand(sql); if (statement != null) { statement(sqlStatmentCommand); } Run(sqlStatmentCommand); return this; } catch (Exception ex) { throw new OrchardException(T("An unexpected error occured while executing the SQL statement: {0}", sql), ex); // Add the sql to the nested exception information } }
public SchemaBuilder ExecuteSql(string sql, Action <SqlStatementCommand> statement = null) { try { var sqlStatmentCommand = new SqlStatementCommand(sql); if (statement != null) { statement(sqlStatmentCommand); } Run(sqlStatmentCommand); return(this); } catch (Exception ex) { throw new OrchardException(T("An unexpected error occured while executing the SQL statement: {0}", sql), ex); // Add the sql to the nested exception information } }
public void Visit(SqlStatementCommand command) { }
public override void Visit(SqlStatementCommand command) { _output.WriteLine("Executing sql statement\n\n {0}", command.Sql); }
public abstract void Visit(SqlStatementCommand command);