An IIdentifierGenerator that indicates to the ISession that identity
(ie. identity/autoincrement column) key generation should be used.
Namespace: NHibernate.Id
Assembly: NHibernate (in NHibernate)
Version: 1.2.0.4000
Syntax
| Visual Basic (Declaration) |
|---|
Public Class IdentityGenerator _ Implements IIdentifierGenerator |
| C# |
|---|
public class IdentityGenerator : IIdentifierGenerator |
| Visual C++ |
|---|
public ref class IdentityGenerator : IIdentifierGenerator |
Remarks
This id generation strategy is specified in the mapping file as
CopyC#
or if the database natively supports identity columns
<generator class="identity" />
CopyC#<generator class="native" />
This indicates to NHibernate that the database generates the id when the entity is inserted.