Click or drag to resize

IDataApi Methods

The IDataApi type exposes the following members.

Methods
  NameDescription
Public methodCode exampleAdd
Add a new Data Object.
Public methodCode exampleAddExternalDO
Add a new external data object.
Public methodCode exampleAny
Determines whether any element of a Data Collection exists or satisfies a condition.
Public methodCode exampleChangeCreator
Update the CreatedBy attribute value of an Data object
Public methodCode exampleClone
Clone new object and add to database.
Public methodCode exampleCopy
Copy data from one existing data object to another. Only properties that exist in both Data Classes are copied.
Public methodCode exampleCount
Count the Data Objects that satisfies a condition.
Public methodCode exampleDelete
Delete a Data Object.
Public methodCode exampleEnumerate(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.
Public methodCode exampleEnumerate(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.
Public methodCode exampleEscapeSearchPhrase
Escape the search phrase1. Use this method when you build the search phrase without FilterBuilder.
Public methodCode exampleGetDataClass
Get data class by name
Public methodCode exampleGetSchema
Load schema of a Data Source by name. This is useful for get data schema of a data source.
Public methodCode exampleHardDelete
Remove any events and data of the data objects by their identifiers.
Public methodCode exampleInc
Increase value of an attribute by specified increment amount.
Public methodCode exampleLoad(String)
Load a Data Object by id.
Public methodCode exampleLoad(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.
Public methodCode exampleMigrate
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
Public methodCode exampleMoveToCase
Move data object to a specific case.
Public methodCode examplePull
Pull data from an array attribute. This method is thread-safe. Schema elements that are equal to the input values will be removed.
Public methodCode examplePush
Push data to an array attribute. This method is thread-safe.
Public methodCode exampleSearch(DataObjectApiQuery)
Search Data Objects.
Public methodCode exampleSearch(DataSourceApiQuery)
Search Data Objects from a Data Source.
Public methodCode exampleUpdate
Update an existing Data Object.
Top
See Also