I have a query that looks like this:
var TheOutput = from u in MyDC.TheTable
where ....
orderby u.TheDateTimeUsed
select new MyModel()
{
....
TheDateCreated = u.TheDateTimeCreated,
TheDateUsed = u.TheDateTimeUsed
...
};
return TheOutput.Take(10).ToList();
u.DateTimeUsed is a nullable date. If the value is null, then I want these records to appear first in the list of 10 that I’m loading.
How can I do this?
Thanks.
Maybe something like this:
You can also do it like this:
Not as nice as the first one.