Version

CreateConnection Method (WebScheduleDbProvider)

Establishes a database connection from the supplied ConnectionString through the implementation-specific Data Provider.
Syntax
'Declaration
 
Protected Overridable Function CreateConnection( _
   ByVal connectionString As String _
) As IDbConnection
protected virtual IDbConnection CreateConnection( 
   string connectionString
)

Parameters

connectionString
A connection string that should be valid for the underlying Data Provider.

Return Value

A general-purpose IDbConnection representing a database connection in a provider-independent manner.
Remarks

Inheritors must override this virtual factory method in order to provide an IDbConnection implementation specific to their underlying Data Provider. CreateConnection will be called by the Connection property when necessary to lazily create the connection.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also