Using PetaPoco, how do i call stored procedure with typed parameters?
in c# i do it like this:
cmd.Parameters.Add("@email", SqlDbType.NVarChar).Value = email;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check out the documentation for further details but here is an extract.
http://www.toptensoftware.com/Articles/114/PetaPoco-What-s-new-in-v4-0
databaseQuery.Execute("insert into temp1 (t) values (@0)",new SqlParameter() { SqlDbType = SqlDbType.VarBinary, Value = DbNull.Value });