예제 #1
0
        public GenericDAO(string provider, string connectionStringSystem)
        {
            Motor motor = new Motor(provider, connectionStringSystem);

            motor.OpenConnection();
            this.motor = motor;
        }
예제 #2
0
        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);
        }