Click or drag to resize

IDataApiLoad Method (String, String)

Load a Data Object from a Data Source by id. This is useful for custom data loading e.g. query including related data objects.

Namespace:  Casewhere.Runtime.DSL.Api
Assembly:  Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.1.0
Syntax
C#
DynamicDataObject Load(
	string dataSourceName,
	string id
)

Parameters

dataSourceName
Type: SystemString
The Data Source name.
id
Type: SystemString
Id of the Data Object to be loaded.

Return Value

Type: DynamicDataObject
The Data Object.
Examples
var dataApi = ctx.Use<IDataApi>();
var employee = dataApi.Load("EmployeesWithDepartments", employeeId);
Log.Info(employee.Department["Name"]);
See Also