An IIdentifierGenerator that generates Guid values using a strategy suggested Jimmy Nilsson's article on informit.com.

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

Syntax

C#
public class GuidCombGenerator : IIdentifierGenerator
Visual Basic
Public Class GuidCombGenerator _
	Implements IIdentifierGenerator
Visual C++
public ref class GuidCombGenerator : IIdentifierGenerator

Remarks

This id generation strategy is specified in the mapping file as

CopyC#
<generator class="guid.comb" />

The comb algorithm is designed to make the use of GUIDs as Primary Keys, Foreign Keys, and Indexes nearly as efficient as ints.

This code was contributed by Donald Mull.

Inheritance Hierarchy

System..::..Object
  NHibernate.Id..::..GuidCombGenerator

See Also