日期:2014-05-19  浏览次数:21029 次

netTiers2.0.1.471 DeepLoad
想把deepload得到的SecurityUser组合成TList <SecurityUser> ,要怎么写呢  
HREmployees表  
Emp_ID(人员编号),Emp_Name,Depart_ID  
SecurityUser表  
User_ID,User_Name,Password,Emp_ID  

TList <MRP.Entities.SecurityUser>   list=new   TList <SecurityUser> ();
TList <HREmployees>   hres   =   DataRepository.HROrganizationProvider.GetByDepart_ID(3);  
DataRepository.HREmployeesProvider.DeepLoad(hres,   false,   DeepLoadType.IncludeChildren,   typeof(TList <SecurityUser> ));  
foreach   (HREmployees   emp   in   hres)  
{  
list   emp.SecurityUser???  
}

------解决方案--------------------
up
------解决方案--------------------
帮顶