I have a project that's using ServiceStack & ORMLite. I need to make use of the OrmLiteReadConnectionExtensions extension method List<T> Select<T>(this IDbConnection dbConn, string sqlFilter, params object[] filterParams).
The thing is, I can't find any documentation or references on how to use this method with a SQL select statement and parameters.
When I looked up the code in github, the following sample/hint was provided:
db.Select<Person>("SELECT * FROM Person WHERE Age > @age", new[] { db.CreateParam("age", 40) })
This would makes sense, but the problem is that my ORMLite c reated db (an IDbConnection object) doesn't have a db.CreateParam(...) method.
How can I create and execute a parameterized select query for my ORMLite repository? To be clear, I am user Sql Server with this project.