IDataApiCopy Method

Copy data from one existing data object to another. Only properties that exist in both Data Classes are copied.

Definition

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
C#
void Copy(
	string srcId,
	string destId,
	bool notifyChange = true,
	params string[] ignoreProperties
)

Parameters

srcId  String
The source data object id.
destId  String
The destination data object id.
notifyChange  Boolean  (Optional)
Skip the data change notification when updating data.
ignoreProperties  String
The properties will be ignore when copying the data object

Example

C#
                    var dataApi = ctx.Use<IDataApi>();
dataApi.Copy(srcId, desId);
                  

See Also