Quantcast
Channel: URF - Unit of Work & (extensible/generic) Repositories Framework
Viewing all articles
Browse latest Browse all 1539

New Post: Sorting sub-entities

$
0
0
Further to my earlier question, having returned the sub-entities belonging to a particular record, is it possible to sort then (assuming they are a collection) as part of the initial query - in this example, by descending date order for example?
var customerWithOrders = await _customerService
.Query(c => c.CustomerID == key)
.Include(x => x.Orders)
.SelectAsync()
.FirstOrDefault();
Thanks.

Viewing all articles
Browse latest Browse all 1539

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>