public DataAccess() { if (Config.ConnectionString() == null) { throw new System.Exception("Connection Error"); } var connecStionstring = Config.ConnectionString(); Db = new DataBaseSql(connecStionstring); }
public DataAccess() { //if (((ConfigurationManager.ConnectionStrings["CFireBird"] == null))) //{ // throw new System.Exception("Connection Error"); //} if (Config.ConnectionString() == null) { throw new System.Exception("Connection Error"); } //var connecStionstring = ConfigurationManager.ConnectionStrings["CFireBird"].ToString(); ////DB_R2 = new DataBaseFireBird(connecStionstring); var connecStionstring = Config.ConnectionString(); Db = new DataBaseSql(connecStionstring); }