Posts

Showing posts from April 5, 2019

create a dictionary of list from an array of pocos?

Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box; } -2 Want to create a dictionary<string, list<string>> from a result set that has a list of: class catalog{ public string Name { get; set; } public string CategoryName { get; set; } public bool CategoryDeleted { get; set; } } I want the key to be the CategoryName and the value to be a List of Names. Each Categories can have the same Name associated with it. One categoryname to many reportnames and it looks like this. {Name = "rp1", CategoryName=cat1, CategoryDeleted = 0 } {Name = "rp2", CategoryName=cat1, CategoryDeleted = 0 } {Name = "rp3", CategoryName=cat1, CategoryDeleted...