so existing mySQLStatement could be passed in as a variable to a c# function?
mySQLStatement="Select field1,field2 from myTable";
myNewSQLwithPagination=convertsqltopaginationsql(mySQLStatement,PageStartNumber,PageStopNumber)
Basically I am asking how to generalize pagination by passing simple queries?
I use mssql
I want to build a generalized function where I pass sql statement and and page start and page size and it returns the sql statement which does pagination.