Skip to main content
All docs
V26.1
  • .NET Framework 4.6.2+

    IDataStoreServiceAsync.UpdateSchemaAsync(Boolean, DBTable[]) Method

    Asynchronously updates a data store’s schema according to specified settings.

    Namespace: DevExpress.Xpo.DB

    Assembly: DevExpress.Xpo.v26.1.dll

    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