Esempio n. 1
0
        /// <inheritdoc />
        public IDataSourceConnection OpenConnection(string connectionString, Guid configurationId)
        {
            // Take the connection string shown in the user interface and parse into our settings object.
            // We could use this to identify what to load.
            this.ConnectionSettings.UpdateFromString(connectionString);

            // Instantiate our data source connection.
            this.DataSourceConnection = new DataSourceConnection(this);

            // We only have one data source connection, so we will return it here.
            return(this.DataSourceConnection);
        }
Esempio n. 2
0
 public static IDataSourceConnection GetInstance()
 {
     if (Connection == null)
       {
     Connection = new DataSourceConnection();
       }
       return Connection;
 }