Skip to main content
A newer version of this page is available. .

DataStoreBase.QueryDataStore(IDbConnection, AutoCreateOption) Method

Creates a data store based on specified settings.

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Data.v18.2.dll

Declaration

public static IDataStore QueryDataStore(
    IDbConnection connection,
    AutoCreateOption autoCreateOption
)

Parameters

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.

Returns

Type Description
IDataStore

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

See Also