Called before an object is deleted
Namespace:
NHibernateAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Sub OnDelete ( _ entity As Object, _ id As Object, _ state As Object(), _ propertyNames As String(), _ types As IType() _ ) |
C# |
---|
void OnDelete( Object entity, Object id, Object[] state, string[] propertyNames, IType[] types ) |
Visual C++ |
---|
void OnDelete( Object^ entity, Object^ id, array<Object^>^ state, array<String^>^ propertyNames, array<IType^>^ types ) |
JavaScript |
---|
function onDelete(entity, id, state, propertyNames, types); |
Parameters
- entity
- Type: System..::.Object
- id
- Type: System..::.Object
- state
- Type: array<
System..::.Object
>[]()[]
- propertyNames
- Type: array<
System..::.String
>[]()[]
- types
- Type: array<
NHibernate.Type..::.IType
>[]()[]
Remarks
It is not recommended that the interceptor modify the state.