Remove a persistent instance from the datastore. The object argument may be
an instance associated with the receiving ISession or a transient
instance with an identifier associated with existing persistent state.
This operation cascades to associated instances if the association is mapped
with cascade="delete".
Namespace: NHibernateAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
void Delete( string entityName, Object obj ) |
Visual Basic |
---|
Sub Delete ( _ entityName As String, _ obj As Object _ ) |
Visual C++ |
---|
void Delete( String^ entityName, Object^ obj ) |
Parameters
- entityName
- Type: System..::..String
The entity name for the instance to be removed.
- obj
- Type: System..::..Object
the instance to be removed