IDataApi Methods |
The IDataApi type exposes the following members.
Name | Description | |
---|---|---|
Add |
Add a new Data Object.
| |
AddExternalDO |
Add a new external data object.
| |
Any |
Determines whether any element of a Data Collection exists or satisfies a condition.
| |
ChangeCreator |
Update the CreatedBy attribute value of an Data object
| |
Clone |
Clone new object and add to database.
| |
Copy |
Copy data from one existing data object to another.
Only properties that exist in both Data Classes are copied.
| |
Count |
Count the Data Objects that satisfies a condition.
| |
Delete |
Delete a Data Object.
| |
Enumerate(DataEnumerationQuery, CancellationToken) |
Query and loop through an extensive collection without writing a lot of code for data paging,
Which is also inefficient when dealing with 100k+ records.
| |
Enumerate(DataSourceEnumerationQuery, CancellationToken) |
Query and loop through an extensive collection without writing a lot of code for data paging,
Which is also inefficient when dealing with 100k+ records.
| |
EscapeSearchPhrase |
Escape the search phrase1. Use this method when you build the search phrase without FilterBuilder.
| |
GetDataClass |
Get data class by name
| |
GetSchema |
Load schema of a Data Source by name.
This is useful for get data schema of a data source.
| |
HardDelete |
Remove any events and data of the data objects by their identifiers.
| |
Inc |
Increase value of an attribute by specified increment amount.
| |
Load(String) |
Load a Data Object by id.
| |
Load(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.
| |
Migrate |
Migrate an Data Object with a specified ID.
This method allows add or update a data object with a specified ID without using generated ID from system.
Note: if canUpdateIfExist = false then the method will throw exception the specified ID already exits in DB
| |
MoveToCase |
Move data object to a specific case.
| |
Pull |
Pull data from an array attribute. This method is thread-safe.
Schema elements that are equal to the input values will be removed.
| |
Push |
Push data to an array attribute. This method is thread-safe.
| |
Search(DataObjectApiQuery) |
Search Data Objects.
| |
Search(DataSourceApiQuery) |
Search Data Objects from a Data Source.
| |
Update |
Update an existing Data Object.
|