Gets or sets the identifier of the Entity in the database.

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

Syntax

C#
public Object Id { get; }
Visual Basic
Public ReadOnly Property Id As Object
	Get
Visual C++
public:
property Object^ Id {
	Object^ get ();
}

Field Value

The identifier of the Entity in the database if one has been assigned.

Remarks

This might be nullNothingnullptra null reference (Nothing in Visual Basic) when the Status is Saving and the database generates the id.

See Also