protected override SqlStatement PrepareExpressions(IExpressionPreparer preparer)
{
var start = StartWith;
if (start != null)
start = start.Prepare(preparer);
var increment = IncrementBy;
if (increment != null)
increment = increment.Prepare(preparer);
var min = MinValue;
if (min != null)
min = min.Prepare(preparer);
var max = MaxValue;
if (max != null)
max = max.Prepare(preparer);
var cache = Cache;
if (cache != null)
cache = cache.Prepare(preparer);
return new CreateSequenceStatement(SequenceName) {
StartWith = start,
IncrementBy = increment,
MinValue = min,
MaxValue = max,
Cache = cache,
Cycle = Cycle
};
}