I am quite new to the entity frame work my context has created the following for me and i am trying to retrieve the values from the following to tables as well AppraisalReadiness and AppraisalTalentRating which are both lookup tables with the descriptions in them and a code my question is using the query below how to add the reference in for the above to table but still having it return a list.
public List<appraisal> GetAppraisal(int employeeId)
{
List<appraisal> Appraisals = new List<appraisal>();
try
{
Appraisals = pamsEntities.appraisals.Where(a => a.emp_no == employeeId).ToList();
}
catch (Exception ex)
{
throw new EntityContextException("GetAppraisal failed.", ex);
}
return Appraisals;
}
public List<appraisal> GetAppraisal(int employeeId)
{
List<appraisal> Appraisals = new List<appraisal>();
try
{
Appraisals = pamsEntities.appraisals.Where(a => a.emp_no == employeeId).ToList();
}
catch (Exception ex)
{
throw new EntityContextException("GetAppraisal failed.", ex);
}
return Appraisals;
}