Delegate SoftTrigger.OnChange
Delegate implemented by subscribers to be notified on changes in the database taking place.
Namespace: SuperOffice.Data
Assembly: SoDataBase.dll
Syntax
public delegate void SoftTrigger.OnChange(SoTable table, SqlType sqlType, int primaryKey, PrivateSave save, SqlCommand orgSqlCommandInner)
Parameters
| Type | Name | Description |
|---|---|---|
| SoTable | table | Table in the database being modified. |
| SqlType | sqlType | Type of modification. |
| int | primaryKey | Primary key of the row being modified. |
| PrivateSave | save | The actual command being sent to the database. |
| SqlCommand | orgSqlCommandInner | The original command this change is a part of. BatchSave commands are expanded to it's acutal sql command. |
Constructors
OnChange(object, IntPtr)
Delegate implemented by subscribers to be notified on changes in the database taking place.
Declaration
public OnChange(object @object, IntPtr method)
Parameters
| Type | Name | Description |
|---|---|---|
| object | object | |
| IntPtr | method |
Methods
BeginInvoke(SoTable, SqlType, int, PrivateSave, SqlCommand, AsyncCallback, object)
Delegate implemented by subscribers to be notified on changes in the database taking place.
Declaration
public virtual IAsyncResult BeginInvoke(SoTable table, SqlType sqlType, int primaryKey, PrivateSave save, SqlCommand orgSqlCommandInner, AsyncCallback callback, object @object)
Parameters
| Type | Name | Description |
|---|---|---|
| SoTable | table | |
| SqlType | sqlType | |
| int | primaryKey | |
| PrivateSave | save | |
| SqlCommand | orgSqlCommandInner | |
| AsyncCallback | callback | |
| object | object |
Returns
| Type | Description |
|---|---|
| IAsyncResult |
EndInvoke(IAsyncResult)
Delegate implemented by subscribers to be notified on changes in the database taking place.
Declaration
public virtual void EndInvoke(IAsyncResult result)
Parameters
| Type | Name | Description |
|---|---|---|
| IAsyncResult | result |
Invoke(SoTable, SqlType, int, PrivateSave, SqlCommand)
Delegate implemented by subscribers to be notified on changes in the database taking place.
Declaration
public virtual void Invoke(SoTable table, SqlType sqlType, int primaryKey, PrivateSave save, SqlCommand orgSqlCommandInner)
Parameters
| Type | Name | Description |
|---|---|---|
| SoTable | table | |
| SqlType | sqlType | |
| int | primaryKey | |
| PrivateSave | save | |
| SqlCommand | orgSqlCommandInner |