Perform an SQL INSERT, and then retrieve a generated identifier.

Namespace: NHibernate.Persister.Collection
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
protected Object PerformInsert(
	Object ownerId,
	IPersistentCollection collection,
	Object entry,
	int index,
	ISessionImplementor session
)
Visual Basic
Protected Function PerformInsert ( _
	ownerId As Object, _
	collection As IPersistentCollection, _
	entry As Object, _
	index As Integer, _
	session As ISessionImplementor _
) As Object
Visual C++
protected:
Object^ PerformInsert(
	Object^ ownerId, 
	IPersistentCollection^ collection, 
	Object^ entry, 
	int index, 
	ISessionImplementor^ session
)

Parameters

ownerId
Type: System..::..Object

[Missing <param name="ownerId"/> documentation for "M:NHibernate.Persister.Collection.AbstractCollectionPersister.PerformInsert(System.Object,NHibernate.Collection.IPersistentCollection,System.Object,System.Int32,NHibernate.Engine.ISessionImplementor)"]

collection
Type: NHibernate.Collection..::..IPersistentCollection

[Missing <param name="collection"/> documentation for "M:NHibernate.Persister.Collection.AbstractCollectionPersister.PerformInsert(System.Object,NHibernate.Collection.IPersistentCollection,System.Object,System.Int32,NHibernate.Engine.ISessionImplementor)"]

entry
Type: System..::..Object

[Missing <param name="entry"/> documentation for "M:NHibernate.Persister.Collection.AbstractCollectionPersister.PerformInsert(System.Object,NHibernate.Collection.IPersistentCollection,System.Object,System.Int32,NHibernate.Engine.ISessionImplementor)"]

index
Type: System..::..Int32

[Missing <param name="index"/> documentation for "M:NHibernate.Persister.Collection.AbstractCollectionPersister.PerformInsert(System.Object,NHibernate.Collection.IPersistentCollection,System.Object,System.Int32,NHibernate.Engine.ISessionImplementor)"]

session
Type: NHibernate.Engine..::..ISessionImplementor

[Missing <param name="session"/> documentation for "M:NHibernate.Persister.Collection.AbstractCollectionPersister.PerformInsert(System.Object,NHibernate.Collection.IPersistentCollection,System.Object,System.Int32,NHibernate.Engine.ISessionImplementor)"]

Return Value

the id of the collection entry

Remarks

This form is used for PostInsertIdentifierGenerator-style ids (IDENTITY, select, etc).

See Also