예제 #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 CategoriesInfo GetValueByID(int CategoryID)
        {
            motor.OpenConnection();
            CategoriesInfo value = CategoriesDAO.GetValueByID(CategoryID);

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