Skip to main content

DataStoreBase.QueryDataStore(IDbConnection, AutoCreateOption) Method

Creates a data store based on specified settings.

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Data.v22.2.dll

NuGet Package: DevExpress.Data


public static IDataStore QueryDataStore(
    IDbConnection connection,
    AutoCreateOption autoCreateOption


Name Type Description
connection IDbConnection

An object which implements the IDbConnection interface.

autoCreateOption AutoCreateOption

An AutoCreateOption enumeration value which specifies the action which is performed when connecting to the created data store. The specified value initializes the data store’s IDataStore.AutoCreateOption property.


Type Description

A data store implementing the IDataStore interface, which uses the connection to access a database.

See Also