Delete an entity.

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

Syntax

C#
void Delete(
	string entityName,
	Object entity
)
Visual Basic
Sub Delete ( _
	entityName As String, _
	entity As Object _
)
Visual C++
void Delete(
	String^ entityName, 
	Object^ entity
)

Parameters

entityName
Type: System..::..String
The name of the entity to be deleted
entity
Type: System..::..Object
A detached entity instance

See Also