public GenericDAO(string provider, string connectionStringSystem) { Motor motor = new Motor(provider, connectionStringSystem); motor.OpenConnection(); this.motor = motor; }
public List <string> GetDistinctData(string table, string column, GetDistinctParameters distincParameters) { List <string> distinctList = new List <string>(); GenericDAO d = new GenericDAO(motor); try { motor.OpenConnection(); distinctList = d.GetDistinctData(table, column, distincParameters); motor.CloseConnection(); return(distinctList); } catch (Exception ex) { motor.CloseConnection(); distinctList.Add(ex.Message); } return(distinctList); }