这是代码:
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 };
有只小跳蛙
largeQ
白衣染霜花