Exemplo n.º 1
0
        public virtual void VisitAlterTable(AlterTableNode node)
        {
            if (node.CreateTable != null)
                VisitCreateTable(node.CreateTable);

            if (node.Actions != null) {
                foreach (var action in node.Actions) {
                    VisitAlterTableAction(action);
                }
            }
        }
Exemplo n.º 2
0
        public virtual void VisitAlterTable(AlterTableNode node)
        {
            if (node.CreateTable != null)
            {
                VisitCreateTable(node.CreateTable);
            }

            if (node.Actions != null)
            {
                foreach (var action in node.Actions)
                {
                    VisitAlterTableAction(action);
                }
            }
        }
Exemplo n.º 3
0
 public override void VisitAlterTable(AlterTableNode node)
 {
     AlterTable.Build(context, node, statements);
 }
Exemplo n.º 4
0
 public static void Build(IQueryContext context, AlterTableNode node, ICollection<SqlStatement> statements)
 {
     // TODO:
 }
Exemplo n.º 5
0
 public static void Build(ITypeResolver typeResolver, AlterTableNode node, ICollection<SqlStatement> statements)
 {
     if (node.CreateTable != null) {
         CreateTable.Build(typeResolver, node.CreateTable, statements);
         foreach (var statement in statements) {
             if (statement is CreateTableStatement)
                 ((CreateTableStatement) statement).IfNotExists = true;
         }
     } else if (node.Actions != null) {
         foreach (var action in node.Actions) {
             BuildAction(typeResolver, node.TableName, action, statements);
         }
     }
 }
Exemplo n.º 6
0
 private void BuildAlterTable(AlterTableNode node)
 {
     AlterTable.Build(typeResolver, node, statements);
 }