MySqlParameter... Add or AddWithValue?
-
Hi, I want to ask about MySqlParameter, when to use Add and when to use AddWithValue? because both seems to be working in every case I tried..
Technology News @ www.JassimRahma.com
-
Hi, I want to ask about MySqlParameter, when to use Add and when to use AddWithValue? because both seems to be working in every case I tried..
Technology News @ www.JassimRahma.com
There is no difference in the end result, AddWithValue just shortens the parameter creation process. Use the one you are comfortable with.
Never underestimate the power of human stupidity RAH
-
Hi, I want to ask about MySqlParameter, when to use Add and when to use AddWithValue? because both seems to be working in every case I tried..
Technology News @ www.JassimRahma.com
You can use whichever you want, but I always use
Add
becauseIDataParameterCollection
doesn't includeAddWithValue
. -
Hi, I want to ask about MySqlParameter, when to use Add and when to use AddWithValue? because both seems to be working in every case I tried..
Technology News @ www.JassimRahma.com
use AddWithValue! beacuse use a strongly type dataset functionality