DataStoreBase.RegisterDataStoreProvider(String, DataStoreCreationFromConnectionDelegate) Method

Registers a data store provider using a specified connection type name and a procedure that establishes a connection for the provider.

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Data.v20.1.dll

Declaration

public static void RegisterDataStoreProvider(
    string connectionTypeShortName,
    DataStoreCreationFromConnectionDelegate createFromConnectionDelegate
)
Public Shared Sub RegisterDataStoreProvider(
    connectionTypeShortName As String,
    createFromConnectionDelegate As DataStoreCreationFromConnectionDelegate
)

Parameters

Name Type Description
connectionTypeShortName String

A String specifying a connection type name, including a namespace. For instance, the MSSqlConnectionProvider defines this parameter as "System.Data.SqlClient.SqlConnection".

createFromConnectionDelegate DevExpress.Xpo.DB.Helpers.DataStoreCreationFromConnectionDelegate

A DataStoreCreationFromConnectionDelegate delegate to be called when the data store provider is created and connected to a database using a connection of the specified type.

See Also