I am using Dapper for a Generic DAL that can be used for both Oracle and SQL server. What would be the best way to provide Paging and Sorting methods so that it works both for SQL and Oracle without manually creating/changing the SQL statments? Something like:
var users= Dapper
.Query<User>(sqlStatment
.Skip(10)
.Take(10)); // where sqlStatment string