Gets or sets the identifier of the Entity in the database.
Namespace:
NHibernate.ImplAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Property Id As Object |
C# |
---|
public Object Id { get; set; } |
Visual C++ |
---|
public: property Object^ Id { Object^ get (); void set (Object^ value); } |
JavaScript |
---|
function get_id(); function set_id(value); |
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.