6
使用AddWithValue时,我总是在参数名称中包含at符号,但我只注意到其他人不使用它的某些代码。一种方式比另一种更正确吗?在使用SqlCommand.Parameters.AddWithValue时应该包含@吗?
cmd.Parameters.AddWithValue("ixCustomer", ixCustomer);
或
cmd.Parameters.AddWithValue("@ixCustomer", ixCustomer);