IDataStoreServiceAsync.UpdateSchemaAsync(Boolean, DBTable[]) Method
In This Article
Asynchronously updates a data store’s schema according to specified settings.
Namespace: DevExpress.Xpo.DB
Assembly: DevExpress.Xpo.v24.2.dll
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 |
---|---|---|
do |
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<Operation |
A Task that returns the update operation result. |
See Also