Get the identifier of an instance (throw an exception if no identifier property)
Namespace: NHibernate.MetadataAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
Object GetIdentifier( Object entity, EntityMode entityMode ) |
Visual Basic |
---|
Function GetIdentifier ( _ entity As Object, _ entityMode As EntityMode _ ) As Object |
Visual C++ |
---|
Object^ GetIdentifier( Object^ entity, EntityMode entityMode ) |
Parameters
- entity
- Type: System..::..Object
[Missing <param name="entity"/> documentation for "M:NHibernate.Metadata.IClassMetadata.GetIdentifier(System.Object,NHibernate.EntityMode)"]
- entityMode
- Type: NHibernate..::..EntityMode
[Missing <param name="entityMode"/> documentation for "M:NHibernate.Metadata.IClassMetadata.GetIdentifier(System.Object,NHibernate.EntityMode)"]
Return Value
[Missing <returns> documentation for "M:NHibernate.Metadata.IClassMetadata.GetIdentifier(System.Object,NHibernate.EntityMode)"]