|
Hello, I would like some advice please..
I wish to supply parameters to a stored procedure via a method in a generic way, just by passing the parameter name and value and not by passing the provide specific Parameter.DbType. Although I may pass the .net framework dbtype.
I understand that ado.net will infer the type by the value passed, or by the .net framework dbtype.
What I would like to know is ... What are the best practices for passing parameters. Should I use specific provider types or can I get away with the other methods?
thanks
|