IDataStoreServiceAsync.UpdateSchemaAsync(Boolean, DBTable[]) Method
Asynchronously updates a data store’s schema according to specified settings.
Namespace: DevExpress.Xpo.DB
Assembly: DevExpress.Xpo.v24.1.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
[OperationContract(Action = "http://tempuri.org/IDataStoreService/UpdateSchema", ReplyAction = "http://tempuri.org/IDataStoreService/UpdateSchemaResponse")]
[XmlSerializerFormat]
Task<OperationResult<UpdateSchemaResult>> UpdateSchemaAsync(
bool doNotCreateIfFirstTableNotExist,
DBTable[] tables
)
Parameters
Name | Type | Description |
---|---|---|
doNotCreateIfFirstTableNotExist | Boolean | Defines 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
Type | Description |
---|---|
Task<OperationResult<UpdateSchemaResult>> | A Task that returns the update operation result. |
See Also