Example #1
0
        /// <summary>
        /// Retrieves the data using only the primary key ID. Ex.: "Select * from MyTable where id=1"
        /// </summary>
        /// <returns>The class filled if found.</returns>
        public virtual EmployeesInfo GetValueByID(int EmployeeID)
        {
            motor.OpenConnection();
            EmployeesInfo value = EmployeesDAO.GetValueByID(EmployeeID);

            if (this.closeConnectionWhenFinish)
            {
                motor.CloseConnection();
            }
            return(value);
        }