Click or drag to resize

IDataApiLoad(String, Boolean) Method

Force load a Data Object by id from the Database and update it to the cache.

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntax
C#
DynamicDataObject Load(
	string id,
	bool forceReload = false
)

Parameters

id  String
Id of the Data Object to be loaded.
forceReload  Boolean  (Optional)
forceReload flag indicates whether to load data object directly from the Database and update it to the cache. Default value: false

Return Value

DynamicDataObject
The Data Object.
Example
C#
var dataApi = ctx.Use<IDataApi>();
var department = dataApi.Load(departmentId, true);
Log.Info(department.Name);
See Also