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 -

android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -