Posts tagged with Linq


As I mentioned way back LINQ SelectMany() has very helpful overload parameter to project items. This comes handy in cases with complex many-to-many schemas where you want LINQ query to be as close to hand…

Suppose you are given these classes class Commit { public int RepoId { get; set; } public List<File> Files { get; set; } } class File { public string FileExtenstion { get; set; } } var commits = new List<Commit>…

We have an error log table with columns like MachineName, EventSource, ErrorMessage, EventDate. UI has dynamic list of checkboxes for machines and events. We needed a way to build a query against EF context which…