Insert an entity.

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

Syntax

C#
Object Insert(
	Object entity
)
Visual Basic
Function Insert ( _
	entity As Object _
) As Object
Visual C++
Object^ Insert(
	Object^ entity
)

Parameters

entity
Type: System..::..Object
A new transient instance

Return Value

The identifier of the instance

See Also