Exemplo n.º 1
0
        public HYLAN_TASKDC LoadByPrimaryKey(int TASK_TITLE_ID, int JOB_ID)
        {
            DBConnection objConnection = new DBConnection();
            HYLAN_TASKDA HYLAN_TASKDA  = HylanTaskDAFactory.Create(TASK_TITLE_ID);
            HYLAN_TASKDC HYLAN_TASKDC  = null;

            try
            {
                objConnection.Open(false);
                HYLAN_TASKDC = HYLAN_TASKDA.LoadByPrimaryKey(objConnection, TASK_TITLE_ID, JOB_ID);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                objConnection.Close();
            }
            return(HYLAN_TASKDC);
        }