You did not indicate whether you want to be in ascending or descending order in the request, so try this:
session.QueryOver<MyClass>()
.OrderBy(x => x.DateInserted).Desc
.Take(10).List();
At the end, you must call the List to get a collection containing the results, and remember to replace the generic type T with your class name.
source
share