Difference between null and System.Dbnull.value

àSo, there's a big conceptual difference between the two. The keyword null represents an invalid reference. The class System.DbNull represents a nonexistent value in a database field. In general, we should try avoid using the same thing (in this case null) to represent two very different concepts (in this case an invalid reference versus a nonexistent value in a database field).

Comments

Popular posts from this blog

File operations in C# (.net)

SQL – Generate decimal numbers sequence for particular number range

Ways to SELECT XML string using Nodes and OPENXML()