23 using NUnit.Framework;
31 var query = base.CreateQuery(session);
33 if (TestContext.CurrentContext.Test.Name !=
"CreateNormalSequence") {
35 query.CreateObject(seqInfo);
49 Assert.DoesNotThrow(() => sequence = sequenceManager.CreateSequence(seqInfo));
50 Assert.IsNotNull(sequence);
61 Assert.DoesNotThrow(() => sequence = sequenceManager.CreateSequence(seqInfo));
62 Assert.IsNotNull(sequence);
70 Assert.DoesNotThrow(() => sequence = sequenceManager.GetSequence(testSequenceName));
71 Assert.IsNotNull(sequence);
74 Assert.DoesNotThrow(() => currentValue = sequence.
NextValue());
75 Assert.IsNotNull(currentValue);
76 Assert.AreEqual(
new SqlNumber(1), currentValue);
void IncremementSequenceValue()
static ObjectName Parse(string s)
Parses the given string into a ObjectName object.
void CreateNormalSequence()
Describes the name of an object within a database.
This is a session that is constructed around a given user and a transaction, to the given database...
A default implementation of a sequence manager that is backed by a given transaction.
void CreateNativeSequence()
override IQuery CreateQuery(ISession session)
An isolated session to a given database for a given user, encapsulating the transaction for operation...
Provides the meta information about a ISequence configuring its operative behavior.
static SequenceInfo Native(ObjectName tableName)
Creates an object that describes a native sequence for the table having the specified name...
static readonly SqlNumber Null
Represents a numberic sequence in a transaction.