List<string> strLen = new List<string>();
            if (!string.IsNullOrEmpty(group_id))
            {
                using (ManagementSystemContext ef = new ManagementSystemContext())
                {
                    List<GroupMapUserMapRoler> list = ef.GroupMapUserMapRolers.Where(a => a.group_id == group_id).ToList();
                    list.ForEach(p =>
                    {
                        var mm = ef.tBaseRolerMapPowers.Where(a => a.roler_name.Equals(p.roler_name)).Select(a => a.power_name);
                        foreach (var item in mm)
                        {
                            strLen.Add(item.ToString());
                        }
                    });
                    if (strLen.Count > 0)
                        strLen.Distinct();
                }
            }
            return string.Join(",", strLen);

相关文章:

  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-12-19
  • 2022-01-07
  • 2021-12-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
相关资源
相似解决方案