An IIdentifierGenerator that generates Guid values using Guid.NewGuid().

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

Syntax

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

Remarks

This id generation strategy is specified in the mapping file as

CopyC#
<generator class="guid" />

Inheritance Hierarchy

System..::..Object
  NHibernate.Id..::..GuidGenerator

See Also