Is there some way that I can get parameter collection code in C# to be used in DAL by running a stored procedure ? please help.
Share
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.
Take a look at
SqlCommandBuilder.DeriveParameters(). ( It also works in the latest Oracle drivers )It will load the parameters from the stored procedure into the
.Parametersproperty of your DbCommand object and you canforeach()to loop through them to get the names, types, and directions…Hope that’s what you were looking for…