Click or drag to resize

ConnectorDataItemClassInsert Method (DataItemClass)

Insert data item

Namespace:  SOWIData.Database
Assembly:  SOWIData (in SOWIData.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public virtual DataItemClass Insert(
	DataItemClass pItem
)

Parameters

pItem
Type: DataItemClass

[Missing <param name="pItem"/> documentation for "M:SOWIData.Database.Connector`1.Insert(`0)"]

Return Value

Type: DataItemClass
a data item

Implements

IConnectorDataItemClassInsert(DataItemClass)
Remarks

Set data item value Action, Task, Status, CreateDate and CreateUser

Event order:

1. Event DBActionPermission (protected)

2. Event DBActionBefore (Status = Create, public)

3. Event DBActionPrepare (protected)

4. Call method Validate with event Validating (details see Validate, protected)

5. Database action insert (Status = Insert, Action = Added -> System.Data.EntityState.Added)

6. Event DBActionDone (protected)

7. Event DBActionAfter (public)

Details event see event handler

Note: XML provider: if ID field value equal 0 then puts a number between 1 to 1000
See Also