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

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

Syntax

C#
Object Save(
	Object obj
)
Visual Basic
Function Save ( _
	obj As Object _
) As Object
Visual C++
Object^ Save(
	Object^ 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