protected internal Datasource(string connectionString, Global.DataProvider provider) { try { dataProvider = provider; if (dataProvider == Global.DataProvider.SQL) { sqlConnection = new SqlConnection(connectionString); } else { oledbConnection = new OleDbConnection(connectionString); } } catch (Exception) { throw; } }
public ClassCheckConnection(string connectionString, Global.DataProvider provider) : base(connectionString, provider) { dataProvider = provider; }
public ClassUser(string connectionString, Global.DataProvider provider) : base(connectionString, provider) { _provider = provider;}