Interface IDataStoreService
- Namespace
- DevExpress.Xpo.DB
- Assembly
- DevExpress.Xpo.v24.1.dll
Defines a WCF service contract to access data directly via data store providers (objects implementing the DevExpress.Xpo.DB.IDataStore interface).
public interface IDataStoreService
Methods
Do(string, object)
Defines a service operation that, when implemented by a class, executes a specified command with specific parameters and returns the operation result.
OperationResult<object> Do(string command, object args)
Parameters
command
stringA string specifying the command to execute.
args
objectAn object specifying the command‘s parameters.
Returns
- OperationResult<object>
An OperationResult<object> denoting the operation result.
GetAutoCreateOption()
Defines a service operation that, when implemented by a class, returns which operations are performed when a data store is accessed for the first time.
OperationResult<AutoCreateOption> GetAutoCreateOption()
Returns
- OperationResult<AutoCreateOption>
An OperationResult<DevExpress.Xpo.DB.AutoCreateOption> denoting the operation result.
ModifyData(ModificationStatement[])
Defines a service operation that, when implemented by a class, updates data in a data store using specified modification statements and returns the operation result.
OperationResult<ModificationResult> ModifyData(ModificationStatement[] dmlStatements)
Parameters
dmlStatements
ModificationStatement[]An array of data modification statements.
Returns
- OperationResult<ModificationResult>
An OperationResult<DevExpress.Xpo.DB.ModificationResult> denoting the result of the data modifications.
SelectData(SelectStatement[])
Defines a service operation that, when implemented by a class, fetches data from a data store using specified query statements and returns the operation result.
OperationResult<SelectedData> SelectData(SelectStatement[] selects)
Parameters
selects
SelectStatement[]An array of query statements.
Returns
- OperationResult<SelectedData>
An OperationResult<DevExpress.Xpo.DB.SelectedData> denoting the result of the data fetch.
UpdateSchema(bool, DBTable[])
Defines a service operation that, when implemented by a class, updates a data store’s schema according to specified settings and returns the operation result.
OperationResult<UpdateSchemaResult> UpdateSchema(bool doNotCreateIfFirstTableNotExist, DBTable[] tables)
Parameters
doNotCreateIfFirstTableNotExist
booltrue if the schema should not be created when the table that corresponds to the first item in the tables array doesn’t exist in the data store; otherwise, false.
tables
DBTable[]An array of tables whose structure should be saved in the data store.
Returns
- OperationResult<UpdateSchemaResult>
An OperationResult<DevExpress.Xpo.DB.UpdateSchemaResult> denoting the result of the update operation.