An IIdentifierGenerator that uses a database table to store the last
generated value.
Namespace: NHibernate.IdAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public class TableGenerator : TransactionHelper, IPersistentIdentifierGenerator, IIdentifierGenerator, IConfigurable |
Visual Basic |
---|
Public Class TableGenerator _ Inherits TransactionHelper _ Implements IPersistentIdentifierGenerator, IIdentifierGenerator, IConfigurable |
Visual C++ |
---|
public ref class TableGenerator : public TransactionHelper, IPersistentIdentifierGenerator, IIdentifierGenerator, IConfigurable |
Remarks
It is not intended that applications use this strategy directly. However, it may be used to build other (efficient) strategies. The return type is System.Int32
The hi value MUST be fetched in a seperate transaction to the ISession transaction so the generator must be able to obtain a new connection and commit it. Hence this implementation may not be used when the user is supplying connections.
The mapping parameters table and column are required.
Inheritance Hierarchy
System..::..Object
NHibernate.Engine..::..TransactionHelper
NHibernate.Id..::..TableGenerator
NHibernate.Id..::..TableHiLoGenerator
NHibernate.Engine..::..TransactionHelper
NHibernate.Id..::..TableGenerator
NHibernate.Id..::..TableHiLoGenerator