Perform an SQL INSERT.

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

Syntax

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

Parameters

id
Type: System..::..Object

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

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

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

j
Type: System..::..Int32

[Missing <param name="j"/> documentation for "M:NHibernate.Persister.Entity.AbstractEntityPersister.Insert(System.Object,System.Object[],System.Boolean[],System.Int32,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.Object[],System.Boolean[],System.Int32,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.Object[],System.Boolean[],System.Int32,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.Object[],System.Boolean[],System.Int32,NHibernate.SqlCommand.SqlCommandInfo,System.Object,NHibernate.Engine.ISessionImplementor)"]

Remarks

This for is used for all non-root tables as well as the root table in cases where the identifier value is known before the insert occurs.

See Also