这是代码:
List<Guid>list = new List<Guid>();
var info = from businessUnit in context.CreateQuery<BusinessUnit>()
join user1 in context.CreateQuery<crm_User>()
on businessUnit.BusinessUnitId equals user1.crm_businessunit_id.Id
where list.Contains(businessUnit.BusinessUnitId.Value)
select new
{
BusinessUnitId = businessUnit.BusinessUnitId,
userName = user1.crm_name,
buName = businessUnit.Name
};
- 5 回答
- 0 关注
- 473 浏览
添加回答
举报
0/150
提交
取消