CustomerService service = new CustomerService();
var customer = service.GetByCustomerId(customerId);
if (customer != null)
{
// 1
service.DeepLoad(customer, true, DeepLoadType.IncludeChildren, new Type[] { typeof(Company)});
if (customer.CompanyIdSource != null)
{
CompanyService cService = new CompanyService();
cService.DeepLoad(customer.CompanyIdSource, true, DeepLoadType.IncludeChildren, typeof(TaxStatus));
}
// 2
service.DeepLoad(customer, true, DeepLoadType.IncludeChildren, new Type[] { typeof(Company), typeof(TaxStatus) });
}
nettier deepload
最新推荐文章于 2013-04-03 17:33:56 发布