Delete a entity.

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

Syntax

C#
public void Delete(
	string entityName,
	Object entity
)
Visual Basic
Public Sub Delete ( _
	entityName As String, _
	entity As Object _
)
Visual C++
public:
virtual void Delete(
	String^ entityName, 
	Object^ entity
) sealed

Parameters

entityName
Type: System..::..String
The entityName for the entity to be deleted
entity
Type: System..::..Object
a detached entity instance

Implements

IStatelessSession..::..Delete(String, Object)

See Also