testing - .Net PetaPoco default query parameters -


given query string

    select * articles article_id=@0 or article_title=@1 
  1. determine total number of parameters (may regex ?)
  2. pass default value each parameter

i'm trying build testing framework hardcoded query strings. goal fire blank query against db , see if fails. preferably want use petapoco open others.

you need know type of value parameter (integer, string, etc)

if building framework should allow user add query statement , parameters needed type, range of values , default value


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -