'Declaration Public Property Connection As IDbConnection
public IDbConnection Connection {get; set;}
The initial IDbConnection implementation returned by this property will be initialized based on the ConnectionID assigned to the WebScheduleDbProvider. When no explicit connection is established at design-time, a default IDbConnection based on the ConnectionStringDefault is created using CreateConnection.
When the WebScheduleDbProvider creates an IDbConnection implementation, it takes full responsibility for closing and disposing of it when processing of the Page ends. When the application creates it's own IDbConnection implementation and assigns it to the Connection property, then the application is responsible for closing and disposing of it. Similarly, the WebScheduleDbProvider does not close or dispose a connection initialized by the design-time setting of a ConnectionID.
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