Generates an appropriate EntityEntry instance and adds it to the event source's internal caches.

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

Syntax

C#
public EntityEntry AddEntry(
	Object entity,
	Status status,
	Object[] loadedState,
	Object rowId,
	Object id,
	Object version,
	LockMode lockMode,
	bool existsInDatabase,
	IEntityPersister persister,
	bool disableVersionIncrement,
	bool lazyPropertiesAreUnfetched
)
Visual Basic
Public Function AddEntry ( _
	entity As Object, _
	status As Status, _
	loadedState As Object(), _
	rowId As Object, _
	id As Object, _
	version As Object, _
	lockMode As LockMode, _
	existsInDatabase As Boolean, _
	persister As IEntityPersister, _
	disableVersionIncrement As Boolean, _
	lazyPropertiesAreUnfetched As Boolean _
) As EntityEntry
Visual C++
public:
virtual EntityEntry^ AddEntry(
	Object^ entity, 
	Status status, 
	array<Object^>^ loadedState, 
	Object^ rowId, 
	Object^ id, 
	Object^ version, 
	LockMode^ lockMode, 
	bool existsInDatabase, 
	IEntityPersister^ persister, 
	bool disableVersionIncrement, 
	bool lazyPropertiesAreUnfetched
) sealed

Parameters

entity
Type: System..::..Object

[Missing <param name="entity"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.AddEntry(System.Object,NHibernate.Engine.Status,System.Object[],System.Object,System.Object,System.Object,NHibernate.LockMode,System.Boolean,NHibernate.Persister.Entity.IEntityPersister,System.Boolean,System.Boolean)"]

status
Type: NHibernate.Engine..::..Status

[Missing <param name="status"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.AddEntry(System.Object,NHibernate.Engine.Status,System.Object[],System.Object,System.Object,System.Object,NHibernate.LockMode,System.Boolean,NHibernate.Persister.Entity.IEntityPersister,System.Boolean,System.Boolean)"]

loadedState
Type: array<System..::..Object>[]()[][]

[Missing <param name="loadedState"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.AddEntry(System.Object,NHibernate.Engine.Status,System.Object[],System.Object,System.Object,System.Object,NHibernate.LockMode,System.Boolean,NHibernate.Persister.Entity.IEntityPersister,System.Boolean,System.Boolean)"]

rowId
Type: System..::..Object

[Missing <param name="rowId"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.AddEntry(System.Object,NHibernate.Engine.Status,System.Object[],System.Object,System.Object,System.Object,NHibernate.LockMode,System.Boolean,NHibernate.Persister.Entity.IEntityPersister,System.Boolean,System.Boolean)"]

id
Type: System..::..Object

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

version
Type: System..::..Object

[Missing <param name="version"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.AddEntry(System.Object,NHibernate.Engine.Status,System.Object[],System.Object,System.Object,System.Object,NHibernate.LockMode,System.Boolean,NHibernate.Persister.Entity.IEntityPersister,System.Boolean,System.Boolean)"]

lockMode
Type: NHibernate..::..LockMode

[Missing <param name="lockMode"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.AddEntry(System.Object,NHibernate.Engine.Status,System.Object[],System.Object,System.Object,System.Object,NHibernate.LockMode,System.Boolean,NHibernate.Persister.Entity.IEntityPersister,System.Boolean,System.Boolean)"]

existsInDatabase
Type: System..::..Boolean

[Missing <param name="existsInDatabase"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.AddEntry(System.Object,NHibernate.Engine.Status,System.Object[],System.Object,System.Object,System.Object,NHibernate.LockMode,System.Boolean,NHibernate.Persister.Entity.IEntityPersister,System.Boolean,System.Boolean)"]

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

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

disableVersionIncrement
Type: System..::..Boolean

[Missing <param name="disableVersionIncrement"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.AddEntry(System.Object,NHibernate.Engine.Status,System.Object[],System.Object,System.Object,System.Object,NHibernate.LockMode,System.Boolean,NHibernate.Persister.Entity.IEntityPersister,System.Boolean,System.Boolean)"]

lazyPropertiesAreUnfetched
Type: System..::..Boolean

[Missing <param name="lazyPropertiesAreUnfetched"/> documentation for "M:NHibernate.Engine.StatefulPersistenceContext.AddEntry(System.Object,NHibernate.Engine.Status,System.Object[],System.Object,System.Object,System.Object,NHibernate.LockMode,System.Boolean,NHibernate.Persister.Entity.IEntityPersister,System.Boolean,System.Boolean)"]

Return Value

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

Implements

IPersistenceContext..::..AddEntry(Object, Status, array<Object>[]()[][], Object, Object, Object, LockMode, Boolean, IEntityPersister, Boolean, Boolean)

See Also