我有一点误会在这里为什么我有这里一个错误,我需要解析这个代码有什么问题吗?
UberTrackerEntities ctx = UberFactory.Context; IEnumerable<HtUser> users = HtUser.GetAll(); string selectedBU = rcbBusinessUnits.SelectedValue; string selectedDepartment = rcbDepartment.SelectedValue; HtDepartment department = ctx.HtDepartments.SingleOrDefault(d => d.DepartmentId ==selectedDepartment); if (department != null) { users = users.Where(u => u.HtDepartments.Contains(department)); }
PS:我的东西我刚刚结束了,它接缝只是一个愚蠢的小错误…