1. 用ComplexObject.
class CompanyComplexInfo : ComplexObject
{
List<Department> DepList {set; get;}
List<Employee> EmpList{set; get;}
}
好像 ComplexObject 不支持 List, 自動生成代碼中沒有 DepList 屬性 和 EmpList 屬性.
2. 用 shared.cs
客戶端是有了這2個屬性了, 但是值總是 null.
3. 說明網上有一些是通過修改 edxm的文件, 但是這種做法應該是Code-First吧?
