asp.net - Check for DbNull in C# -



asp.net - Check for DbNull in C# -

i finding difficulties in validating next

if(personds.person[0].idfk!= dbnull.value)

this compile time error - cannot applied operands of type 'system.guid , 'system.dbnull'

i think should check:

if(personds.person[0].isidfknull())

c# asp.net sql-server

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -