Insert a entity.

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

Syntax

C#
public Object Insert(
	Object entity
)
Visual Basic
Public Function Insert ( _
	entity As Object _
) As Object
Visual C++
public:
virtual Object^ Insert(
	Object^ entity
) sealed

Parameters

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

Return Value

the identifier of the instance

Implements

IStatelessSession..::..Insert(Object)

See Also