Click or drag to resize

ConnectorDataItemClassDelete Method (Int32)

Delete a data item - set Status = Delete (except XML provider)

Namespace:  SOWIData.Database
Assembly:  SOWIData (in SOWIData.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public virtual void Delete(
	int pID
)

Parameters

pID
Type: SystemInt32

[Missing <param name="pID"/> documentation for "M:SOWIData.Database.Connector`1.Delete(System.Int32)"]

Implements

IConnectorDataItemClassDelete(Int32)
Remarks

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
See Also