background image

public

 

class

 EmployeeCollection

{

public

 List<Employeer> Employees { get; set; }

}
[Serializable]

public

 

class

 Employeer

{

public

 string userId { get; set; }

public

 string userName { get; set; }

public

 string gender { get; set; }

public

 int age { get; set; }

public

 List<WorkExperience> workExperience { get; set; }

public

 string education { get; set; }

public

 

static

 List<Employeer> Employees()

{

return

 

new

 List<Employeer>()

{

new

 Employeer() 


userId = "0001",
userName = "guoHu",
gender="Man",
age=25,education="underGraduate",
workExperience = WorkExperience.GetWorkExperience("0001")
}
};
 
}
}
[Serializable]

public

 

class

 WorkExperience

{

public

 string userId { get; set; }

public

 string companyName { get; set; }

public

 string seniority { get; set; }

 

public

 

static

 List<WorkExperience> GetWorkExperience(string userId)

{
List<WorkExperience> workExperience = 

new

 List<WorkExperience>();

Unity unity = Unity.GetInstance();
DataTable table = 

new

 DataTable();

unity.GetTable(out table);