I want to be able to call a stored proc with named parameters in PetaPoco.
In order to call a stored proc that does a search/fetch:
Can I do something like this
In my case, I did the following
db.EnableAutoSelect = false; return db.Fetch(@"EXEC SP_FindCust @@first_name = @first_name, @@last_name = @last_name, @@dob = @dob", new { first_name = fName, last_name = lName, dob = dob });
It worked!