An IIdentifierGenerator that returns a Int64, constructed by counting from the maximum primary key value at startup. Not safe for use in a cluster!

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

Syntax

C#
public class IncrementGenerator : IIdentifierGenerator, 
	IConfigurable
Visual Basic
Public Class IncrementGenerator _
	Implements IIdentifierGenerator, IConfigurable
Visual C++
public ref class IncrementGenerator : IIdentifierGenerator, 
	IConfigurable

Remarks

java author Gavin King, .NET port Mark Holden

Mapping parameters supported, but not usually needed: table, column.

Inheritance Hierarchy

System..::..Object
  NHibernate.Id..::..IncrementGenerator

See Also