IDataApiLoad(String, Boolean) Method
|
Force load a Data Object by id from the Database and update it to the cache.
Namespace: Casewhere.Runtime.DSL.ApiAssembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
SyntaxDynamicDataObject 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.
Examplevar dataApi = ctx.Use<IDataApi>();
var department = dataApi.Load(departmentId, true);
Log.Info(department.Name);
See Also