When you specify an
When using this constructor, you must be aware of a possible misuse of the constructor which takes a DbType parameter.
+ This happens when calling this constructor passing an int 0 and the compiler thinks you are passing a value of DbType.
+ Use Convert.ToInt32(value)
for example to have compiler calling the correct constructor.
parameters.Add(":pname", Convert.ToInt32(0));
+ If you do not perform this conversion, the compiler will assume you
+ are attempting to call the NpgsqlParameterCollection.Add(string, DbType) overload.
+