Remove a persistent instance from the datastore.

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

Syntax

C#
void Delete(
	Object obj
)
Visual Basic
Sub Delete ( _
	obj As Object _
)
Visual C++
void Delete(
	Object^ obj
)

Parameters

obj
Type: System..::..Object
The instance to be removed

Remarks

The argument may be an instance associated with the receiving ISession or a transient instance with an identifier associated with existing persistent state.

See Also