David Smith

David Smith

  • NA
  • 2k
  • 0

c# Dictionary<String, List<ConcreteClass> Help

Apr 12 2022 12:14 PM

I have this structure below. Essentially UserID and Session is the primary key or the unique identifiers in the dataset. I need help setting up the linq to  Print out the DetailList groupby UserId and Session using Linq. I am struggling writing the LinQ

  Dictionary<string, List<DetailRoot>> dataList = Reporter.GetSiteData();

   public class DetailRoot
    {

        public string UserId{ get; set; }
        public string Session{ get; set; }
        public IReadOnlyList<DetailModel> DetailList { get; set; }

    }

 

 public class DetailModel
    {
        public string ApplicationGuid { get; set; }
        public string EventType { get; set; }

  }


Answers (2)