.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

XpoDefault.GetConnectionProvider(IDbConnection, AutoCreateOption) Method

Creates a data store provider (an IDataStore instance).

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.2.dll

Declaration

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

Parameters

Name Type Description
connection IDbConnection

A database connection object.

autoCreateOption AutoCreateOption

Specifies whether XPO can create a database or update its schema.

Returns

Type Description
IDataStore

A data store provider.

See Also