Persist the given transient instance, first assigning a generated identifier.

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

Syntax

Visual Basic (Declaration)
Function Save ( _
	obj As Object _
) As Object
C#
Object Save(
	Object obj
)
Visual C++
Object^ Save(
	Object^ obj
)
JavaScript
function save(obj);

Parameters

obj
Type: System..::.Object
A transient instance of a persistent class

Return Value

The generated identifier

Remarks

Save will use the current value of the identifier property if the Assigned generator is used.

See Also