public override string Translate(SqlCompilerContext context, SqlAlterSequence node, NodeSection section) { if (section == NodeSection.Entry) { return(TranslateSequenceStatement(context, node.Sequence, "ALTER")); } return(string.Empty); }
/// <inheritdoc/> public override string Translate(SqlCompilerContext context, SqlAlterSequence node, NodeSection section) { switch (section) { case NodeSection.Entry: return("SET GENERATOR " + Translate(context, node.Sequence)); case NodeSection.Exit: return("TO " + (node.SequenceDescriptor.LastValue.HasValue ? node.SequenceDescriptor.LastValue : 0)); } return(string.Empty); }
public override void Visit(SqlAlterSequence node) { context.Output.AppendText(translator.Translate(context, node, NodeSection.Entry)); context.Output.AppendText(translator.Translate(context, node, NodeSection.Exit)); }
public virtual void Visit(SqlAlterSequence node) { }