Exemplo n.º 1
0
        protected void SetupUndoDeleteSequence(DeleteSequenceExpression expression)
        {
            CanUndo = true;
            FirebirdSchemaProvider   schema         = new FirebirdSchemaProvider(Processor);
            SequenceInfo             sequence       = schema.GetSequence(expression.SequenceName);
            CreateSequenceExpression createSequence = new CreateSequenceExpression()
            {
                Sequence = new SequenceDefinition()
                {
                    Name      = sequence.Name,
                    StartWith = sequence.CurrentValue
                }
            };

            UndoExpressions.Add(createSequence);
        }
 public SequenceInfo GetSequence(string sequenceName)
 {
     return(SequenceInfo.Read(Processor, sequenceName));
 }