Given a query string like this
SELECT * FROM articles WHERE article_id=@0 OR article_title=@1
- Determine total number of parameters (may be regex ?)
- Pass a default value for each parameter
I'm trying to build a testing framework for hardcoded query strings. The goal is to fire a blank query against the DB and see if it fails. I preferably want to use PetaPoco but open to others.