如果我有两个具有相关字段(外键 CountryId)的业务对象,当我显示员工类列表时,如何显示 CountryName 代替 CountryId?
public class Employee
{
public int Id { get; set; }
public string FirstName { get; set; }
public string FamilyName { get; set; }
public int CountryId { get; set; }
}
public class Country
{
public int Id { get; set; }
public string CountryName { get; set; }
}