ConnectorDataItemClassDelete Method (Int32) |
Namespace: SOWIData.Database
[Missing <param name="pID"/> documentation for "M:SOWIData.Database.Connector`1.Delete(System.Int32)"]
Check is data item exist. If no exist then return SIC.ResultMessages.NotFound (method GetByID)
Check in event DBActionBefore or/and Validating whether this data can be deleted (relationships)
Set data item value Action, Task, Status, DeleteDate and DeleteUser
Event order:
1. Event DBActionPermission (protected)
2. Event DBActionBefore (Action = Delete, public)
3. Event DBActionPrepare (protected)
4. Call method Validate with event Validating (details see Validate, protected)
5. Database action delete (Status = Delete and still exists on database)
6. Event DBActionDone (protected, Action = Deleted)
7. Event DBActionAfter (public, Action = Deleted)
Details event see event handler
Note: XML Provider: Data item is definitely deleted