Hello,
I am using the SqlModelMapper to retrieve data. I have noticed that the LoadByPageAsync methode doesn't generate a top x start at x statement in the query.
It retrieves all the records in the database en then creates the page in code. This makes is pretty slow. is there a way to add the top x start at x to the generated qeury?
I saw that there is a Top attribute to add to the models but this is static so you can't really dynamically change this.
King regards,
Aaron D'Hooghe
The methode GetQueryBuilder return an IQueryBuilder not a ISqlQueryBuilder. The IQueryBuilder does not have a Top or Page methode.
Is there a way go from a IQueryBuilder to a ISqlQueryBuilder?
Kind Regards,
Aaron D'Hooghe
That being the case, I think it would be a nice idea to suggest "I am using the SqlModelMapper to retrieve data. I have noticed that the LoadByPageAsync methode doesn't generate a top x start at x statement in the query. It retrieves all the records in the database en then creates the page in code. This makes is pretty slow. i" as an enhancement request on the Support Portal.
Regards,
Francisco