The difference between null and DBNull.Value

"null"   means   the   object   reference   is   invalid   in   .NET,   when   you   retrieve   a   NULL   value   from   the   Database,   it   is   a   valid   value   to   .NET,   and   it   is   represented   by   System.DBNull.Value.


 

null在.net中意思是对象无效,但是当你在数据库中查找NULL值时,对于.net确是有效的,他的值就是DBNull.Value

你可能感兴趣的:(value)