예제 #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);
        }
 public abstract void Visit(SqlStatementCommand command);
 public void Visit(SqlStatementCommand command)
 {
 }
 public override void Visit(SqlStatementCommand command)
 {
     _output.WriteLine("// Executing sql statement\n\n {0}", command.Sql);
 }
 public SchemaBuilder ExecuteSql(string sql, Action<SqlStatementCommand> statement = null)
 {
     var sqlStatmentCommand = new SqlStatementCommand(sql);
     if ( statement != null ) {
         statement(sqlStatmentCommand);
     }
     Run(sqlStatmentCommand);
     return this;
 }