Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

linq when name then orderby

var res = _repository.GetActiveDepartmentGroupsWithDepartments()
                     .SelectMany(c => c.Departments, (c,d) => new { c, d })
                     .OrderBy(x => x.c.DepartmentGroupName)
                     .ThenBy(x => x.d.DepartmentName)
                     .Select(x => x.d);
Comment

PREVIOUS NEXT
Code Example
Csharp :: C# clear form 
Csharp :: addd to array c# 
Csharp :: Terrain Tools unity missing 
Csharp :: linq query select where c# 
Csharp :: if set active == false 
Csharp :: c# handle single quote inside string 
Csharp :: how to insert into a list c# 
Csharp :: how to skip bin/Debug/netcoreapp3.1/ on the reltaive path 
Csharp :: bsod screen c# 
Csharp :: simple code to call rest api c# 
Csharp :: string tochar array c# 
Csharp :: Winform on exit run method 
Csharp :: wpf textblock line break code behind 
Csharp :: how to store some variables on the device in unity 
Csharp :: adding a dependency injection service in windows forms app 
Csharp :: mvc string format 
Csharp :: which game engine is best 
Csharp :: c# draw rectangle on screen 
Csharp :: C# compare date values 
Csharp :: tostring format 2 decimals 
Csharp :: unity list get item at index 
Csharp :: c# sum object values 
Csharp :: and operator in c# 
Csharp :: unity get max occurrence in list 
Csharp :: c# destroy function...unity 
Csharp :: hide numericUpDown arrows 
Csharp :: .net on vs code 
Csharp :: serenity frameword order column 
Csharp :: C# Blocks with statements 
Csharp :: asp c# page scroll position change after postback 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =