Used by OneToOneType and ManyToOneType to determine what id value
should be used for an object that may or may not be associated with
the session. This does a "best guess" using any/all info available
to use (not just the EntityEntry).
Namespace:
NHibernate.ImplAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function GetEntityIdentifierIfNotUnsaved ( _ obj As Object _ ) As Object |
C# |
---|
public Object GetEntityIdentifierIfNotUnsaved( Object obj ) |
Visual C++ |
---|
public: virtual Object^ GetEntityIdentifierIfNotUnsaved( Object^ obj ) sealed |
JavaScript |
---|
function getEntityIdentifierIfNotUnsaved(obj); |
Parameters
- obj
- Type: System..::.Object