Ejemplo n.º 1
0
 public SchemaBuilder ExecuteSql(string sql, Action<SqlStatementCommand> statement = null) {
     var sqlStatmentCommand = new SqlStatementCommand(sql);
     if ( statement != null ) {
         statement(sqlStatmentCommand);
     }
     Run(sqlStatmentCommand);
     return this;
 }
Ejemplo n.º 2
0
        public SchemaBuilder ExecuteSql(string sql, Action <SqlStatementCommand> statement = null)
        {
            var sqlStatmentCommand = new SqlStatementCommand(sql);

            if (statement != null)
            {
                statement(sqlStatmentCommand);
            }
            Run(sqlStatmentCommand);
            return(this);
        }
Ejemplo n.º 3
0
 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
     }
 }
Ejemplo n.º 4
0
 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) {
 }
Ejemplo n.º 6
0
 public override void Visit(SqlStatementCommand command) {
     _output.WriteLine("Executing sql statement\n\n {0}", command.Sql);
 }
 public abstract void Visit(SqlStatementCommand command);