IData ApiLoad(String, Boolean) Method
Force load a Data Object by id from the Database and update it to the cache.
Definition
Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
The Data Object.
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
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
DynamicDataObjectThe Data Object.
Example
C#
var dataApi = ctx.Use<IDataApi>();
var department = dataApi.Load(departmentId, true);
Log.Info(department.Name);