Interface IDataStoreServiceAsync
- Namespace
- DevExpress.Xpo.DB
- Assembly
- DevExpress.Xpo.v24.1.dll
Defines a WCF service contract to asynchronously access data via data store providers (objects that implement the DevExpress.Xpo.DB.IDataStoreAsync interface).
public interface IDataStoreServiceAsync : IDataStoreService
- Inherited Members
Methods
DoAsync(string, object)
Asynchronously executes a specified command with specific parameters and returns the operation result.
Task<OperationResult<object>> DoAsync(string command, object args)
Parameters
Returns
- Task<OperationResult<object>>
A Task that returns the operation result.
GetAutoCreateOptionAsync()
Asynchronously gets the AutoCreateOption setting used during the first connection to a data store.
Task<OperationResult<AutoCreateOption>> GetAutoCreateOptionAsync()
Returns
- Task<OperationResult<AutoCreateOption>>
A Task that returns the operation result.
ModifyDataAsync(ModificationStatement[])
Uses specified modification statements to asynchronously update data in a data store.
Task<OperationResult<ModificationResult>> ModifyDataAsync(ModificationStatement[] dmlStatements)
Parameters
dmlStatements
ModificationStatement[]An array of data modification statements.
Returns
- Task<OperationResult<ModificationResult>>
A Task that returns the data modification result.
SelectDataAsync(SelectStatement[])
Uses specified query statements to asynchronously fetch data from a data store.
Task<OperationResult<SelectedData>> SelectDataAsync(SelectStatement[] selects)
Parameters
selects
SelectStatement[]An array of query statements.
Returns
- Task<OperationResult<SelectedData>>
A Task that returns the data fetch result.
UpdateSchemaAsync(bool, DBTable[])
Asynchronously updates a data store’s schema according to specified settings.
Task<OperationResult<UpdateSchemaResult>> UpdateSchemaAsync(bool doNotCreateIfFirstTableNotExist, DBTable[] tables)
Parameters
doNotCreateIfFirstTableNotExist
boolDefines whether to create and update tables if the data store does not contain the tables array’s first item. true, to prevent table creation and schema update; false, to create new tables and update schema.
tables
DBTable[]An array of tables whose structure is saved to the data store.
Returns
- Task<OperationResult<UpdateSchemaResult>>
A Task that returns the update operation result.