Get the values of the natural id fields as known to the underlying database, or null if the entity has no natural id or there is no corresponding row.

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

Syntax

C#
public Object[] GetNaturalIdSnapshot(
	Object id,
	IEntityPersister persister
)
Visual Basic
Public Function GetNaturalIdSnapshot ( _
	id As Object, _
	persister As IEntityPersister _
) As Object()
Visual C++
public:
virtual array<Object^>^ GetNaturalIdSnapshot(
	Object^ id, 
	IEntityPersister^ persister
) sealed

Parameters

id
Type: System..::..Object

[Missing <param name="id"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.GetNaturalIdSnapshot(System.Object,NHibernate.Persister.Entity.IEntityPersister)"]

persister
Type: NHibernate.Persister.Entity..::..IEntityPersister

[Missing <param name="persister"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.GetNaturalIdSnapshot(System.Object,NHibernate.Persister.Entity.IEntityPersister)"]

Return Value

[Missing <returns> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.GetNaturalIdSnapshot(System.Object,NHibernate.Persister.Entity.IEntityPersister)"]

Implements

IPersistenceContext..::..GetNaturalIdSnapshot(Object, IEntityPersister)

See Also