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