Nullable column returns 0?

Posts   
 
    
sonny
User
Posts: 2
Joined: 12-Mar-2007
# Posted on: 16-Mar-2007 17:26:34   

Can anyone tell me why a nullable column with a null value returns a 0 when I get the Entity property?

Thanks, Sonny

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 17-Mar-2007 01:55:18   

Can you post the code that is returning 0. Show the fetch and how the value is being read.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 17-Mar-2007 16:10:07   

Is the field really generated as a nullable type? This isn't trivial, as there's a project property which switches this off. This means that in the designer, for the field in question, the checkbox that the field should be generated as a Nullable type should be checked. Could you check that for me, please?

Frans Bouma | Lead developer LLBLGen Pro