DataStoreBase.QueryDataStore(IDbConnection, AutoCreateOption) Method

Creates a data store based on specified settings.

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Data.v20.1.dll

Declaration

public static IDataStore QueryDataStore(
    IDbConnection connection,
    AutoCreateOption autoCreateOption
)
Public Shared Function QueryDataStore(
    connection As IDbConnection,
    autoCreateOption As AutoCreateOption
) As IDataStore

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