A generator which combines sequence generation with immediate retrieval by attaching a output parameter to the SQL command In this respect it works much like ANSI-SQL IDENTITY generation.

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

Syntax

C#
public class SequenceIdentityGenerator : SequenceGenerator, 
	IPostInsertIdentifierGenerator, IIdentifierGenerator
Visual Basic
Public Class SequenceIdentityGenerator _
	Inherits SequenceGenerator _
	Implements IPostInsertIdentifierGenerator, IIdentifierGenerator
Visual C++
public ref class SequenceIdentityGenerator : public SequenceGenerator, 
	IPostInsertIdentifierGenerator, IIdentifierGenerator

Inheritance Hierarchy

System..::..Object
  NHibernate.Id..::..SequenceGenerator
    NHibernate.Id..::..SequenceIdentityGenerator

See Also