【发布时间】:2009-08-14 10:07:24
【问题描述】:
如果我有两个具有相关字段(外键 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; }
}
【问题讨论】:
-
您必须更加具体。 ASP.NET、WinForms、WPF、Silverlight 还是什么?你用什么组件来显示等等。
标签: .net business-objects