I'm trying to do pagination on my webapp with MVC3 and nhibernate, the first page works fine but nothing else than SetFirstResult(0)
works!
.SetFirstResult(request.pageIndex * request.pageSize).SetMaxResults(request.pageSize)
NHibernate.Exceptions.GenericADOException was unhandled by user code Message=could not execute query
InnerException: System.Data.SqlClient.SqlException Message=The column 'DossierN5_8_3_' was specified multiple times for 'query'.
I have searched a lot but I can't find anyone with the same problem.