Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > ADO Data > SqlParameter an...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 4233 of 4320
Post > Topic >>

SqlParameter and DBNull.Value - possible bug?

by =?Utf-8?B?TWFydGluIFJldA==?= <MartinRet@[EMAIL PROTECTED] May 14, 2008 at 08:23 AM

Is following behaviour by design or is it a bug?
For shure breaking change from framework 1.1.

Try under framework => 2.0
SqlParameter param = new SqlParameter("Test", DbType.Int32);
Console.WriteLine("Value: {0}, Type: {1}",param.Value, param.DbType);
param.Value = DBNull.Value;
Console.WriteLine("Value: {0}, Type: {1}  --- WTF",param.Value,
param.DbType);
Console.ReadLine();
 




 2 Posts in Topic:
SqlParameter and DBNull.Value - possible bug?
=?Utf-8?B?TWFydGluIFJldA=  2008-05-14 08:23:03 
Re: SqlParameter and DBNull.Value - possible bug?
"Bob Barrows [MVP]&q  2008-05-14 11:41:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 15:54:26 CST 2008.