I came across a scenario where I had to use Union all, how can I achieve so in LINQ to entities ?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Here is the answer you are looking for. Use the Concat keyword.
From the example:
I believe
Concat
is what you're looking for.Obviously, both result sets must use the same type. And I believe there my be other requirements about how the result sets are constructed in the first place, but I don't know all the details.