c# - Latest forums posts by date -


i have lambda statement:

tpgforumpost.select(v => v).orderbydescending(d => d.datecreated) 

i need figure out how limit 5 of latest posts.

to last 5 posts:

tpgforumpost.select(v => v).orderbydescending(d => d.datecreated).take(5); 

the second part requires more info, , maybe should separate question since it's unrelated.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -