Implement data flow connection setup when there is an associated script

Implement data flow connection setup when there is an associated script

Sample script to set up an IDbConnection connection of the DataReader Source component.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<Connection("ConnectionType")> _
<DataFlowSetting(New String() {"DataReader Source.Connection.IDbConnection"})> _
Public Property Connection() As String
    Get
        Connection = m_connection
    End Get
    Set(ByVal value As String)
        m_connection = value
    End Set
End Property
 
<Browsable(False)> _
Public ReadOnly Property ConnectionType() As String
    Get
        ConnectionType = "OLEDB"
    End Get
End Property