Performs optimization on an optimizable identifier generator. Typically this optimization takes the form of trying to ensure we do not have to hit the database on each and every request to get an identifier value.

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

Syntax

C#
public interface IOptimizer
Visual Basic
Public Interface IOptimizer
Visual C++
public interface class IOptimizer

Remarks

Optimizers work on constructor injection. They should provide a constructor with the following arguments.

- Type The return type for the generated values. - int The increment size.

See Also