A generator that selects the just inserted row to determine the identifier value assigned by the database. The correct row is located using a unique key.

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

Syntax

C#
public class SelectGenerator : AbstractPostInsertGenerator, 
	IConfigurable
Visual Basic
Public Class SelectGenerator _
	Inherits AbstractPostInsertGenerator _
	Implements IConfigurable
Visual C++
public ref class SelectGenerator : public AbstractPostInsertGenerator, 
	IConfigurable

Remarks

One mapping parameter is required: key (unless a natural-id is defined in the mapping).

Inheritance Hierarchy

System..::..Object
  NHibernate.Id..::..AbstractPostInsertGenerator
    NHibernate.Id..::..SelectGenerator

See Also