J
James
I had asked this question before (long ago) but not sure if the answer still stands.
When I create a SqlParameter object I can one of the many overloaded constructors.
SqlParameter param = new SqlParameter("@customerid", 1001);
SqlParameter param = new SqlParameter("@customerid", SqlDbType.Int, 4, ParameterDirection.Input, ..., 1001);
I prefer to use the second approach. But I hear arguments that first one much more cleaner, readable and maintainable...
What is your opinion? Any official stand on this from the ADO.NET group @MS?
James
When I create a SqlParameter object I can one of the many overloaded constructors.
SqlParameter param = new SqlParameter("@customerid", 1001);
SqlParameter param = new SqlParameter("@customerid", SqlDbType.Int, 4, ParameterDirection.Input, ..., 1001);
I prefer to use the second approach. But I hear arguments that first one much more cleaner, readable and maintainable...
What is your opinion? Any official stand on this from the ADO.NET group @MS?
James