Overloaded form of GetCreateSequenceString(String), additionally taking the initial value and increment size to be applied to the sequence definition.

Namespace: NHibernate.Dialect
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
protected virtual string GetCreateSequenceString(
	string sequenceName,
	int initialValue,
	int incrementSize
)
Visual Basic
Protected Overridable Function GetCreateSequenceString ( _
	sequenceName As String, _
	initialValue As Integer, _
	incrementSize As Integer _
) As String
Visual C++
protected:
virtual String^ GetCreateSequenceString(
	String^ sequenceName, 
	int initialValue, 
	int incrementSize
)

Parameters

sequenceName
Type: System..::..String
The name of the sequence
initialValue
Type: System..::..Int32
The initial value to apply to 'create sequence' statement
incrementSize
Type: System..::..Int32
The increment value to apply to 'create sequence' statement

Return Value

The sequence creation command

Remarks

The default definition is to suffix GetCreateSequenceString(String, Int32, Int32) with the string: " start with {initialValue} increment by {incrementSize}" where {initialValue} and {incrementSize} are replacement placeholders. Generally dialects should only need to override this method if different key phrases are used to apply the allocation information.

See Also