Solved

Order by in Linq

Posted on 2009-04-15
2
2,353 Views
Last Modified: 2013-11-11
How do I have a order by on a UNION ?

Where do I add an orderby ?
var rsUnion = rsPunchTime.Union(rsPunchAccess);

Open in new window

0
Comment
Question by:u2envy1
2 Comments
 
LVL 19

Accepted Solution

by:
MsShadow earned 500 total points
ID: 24147382
rsUnion = rsUnion.OrderBy(o=>o.PunchTime)
0
 

Author Closing Comment

by:u2envy1
ID: 31570367
Thx
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now