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

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

Syntax

C#
protected Object Insert(
	Object[] fields,
	bool[] notNull,
	SqlCommandInfo sql,
	Object obj,
	ISessionImplementor session
)
Visual Basic
Protected Function Insert ( _
	fields As Object(), _
	notNull As Boolean(), _
	sql As SqlCommandInfo, _
	obj As Object, _
	session As ISessionImplementor _
) As Object
Visual C++
protected:
Object^ Insert(
	array<Object^>^ fields, 
	array<bool>^ notNull, 
	SqlCommandInfo^ sql, 
	Object^ obj, 
	ISessionImplementor^ session
)

Parameters

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

[Missing <param name="fields"/> documentation for "M:NHibernate.Persister.Entity.AbstractEntityPersister.Insert(System.Object[],System.Boolean[],NHibernate.SqlCommand.SqlCommandInfo,System.Object,NHibernate.Engine.ISessionImplementor)"]

notNull
Type: array<System..::..Boolean>[]()[][]

[Missing <param name="notNull"/> documentation for "M:NHibernate.Persister.Entity.AbstractEntityPersister.Insert(System.Object[],System.Boolean[],NHibernate.SqlCommand.SqlCommandInfo,System.Object,NHibernate.Engine.ISessionImplementor)"]

sql
Type: NHibernate.SqlCommand..::..SqlCommandInfo

[Missing <param name="sql"/> documentation for "M:NHibernate.Persister.Entity.AbstractEntityPersister.Insert(System.Object[],System.Boolean[],NHibernate.SqlCommand.SqlCommandInfo,System.Object,NHibernate.Engine.ISessionImplementor)"]

obj
Type: System..::..Object

[Missing <param name="obj"/> documentation for "M:NHibernate.Persister.Entity.AbstractEntityPersister.Insert(System.Object[],System.Boolean[],NHibernate.SqlCommand.SqlCommandInfo,System.Object,NHibernate.Engine.ISessionImplementor)"]

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

[Missing <param name="session"/> documentation for "M:NHibernate.Persister.Entity.AbstractEntityPersister.Insert(System.Object[],System.Boolean[],NHibernate.SqlCommand.SqlCommandInfo,System.Object,NHibernate.Engine.ISessionImplementor)"]

Return Value

[Missing <returns> documentation for "M:NHibernate.Persister.Entity.AbstractEntityPersister.Insert(System.Object[],System.Boolean[],NHibernate.SqlCommand.SqlCommandInfo,System.Object,NHibernate.Engine.ISessionImplementor)"]

Remarks

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

See Also