السلام عليكــم ورحمـة الله وبركاتــه ،،
عايزاه اعرف ايه الفرق مابين parameter.add and parameter.addwithvalue
وشكرا
السلام عليكــم ورحمـة الله وبركاتــه ،،
عايزاه اعرف ايه الفرق مابين parameter.add and parameter.addwithvalue
وشكرا
add with parameter is more secure
لايوجد اي فرق فقط الاختلاف في المتحولات ولكن نفس العمل بالنتيجة . وبالنسبة لكلام الاخ علي ان addwithvalue اكثر أمان فاسمح لي ان أقول ان هذا الكلام غير صحيح تماما ولو رجعت الى الشيفرة المصدرية لهذين التابعين كنت ستغير رأيك .
well technically, both should be even, but i have an opinion here, it's personal but for me it make sens
Parameters.Add is define the param so you can use it later and even if you are looping or something to assign a value, the param will be created once.
AddWithValue
it's define the param while assigning the value, so if you are looping, it will define the param the same count of your loop length
so in that case Parameters.Add maybe will be faster.
make sens ?