Generate as Nullable type

Posts   
 
    
mikeg22
User
Posts: 411
Joined: 30-Jun-2005
# Posted on: 21-Aug-2007 23:07:50   

Version 2.5, Adapter

Why is this checkbox sometimes disabled in the designer? I have a field that is nullable in the database, but I can't change the "Generate as Nullable type" option because the checkbox is disabled...

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 22-Aug-2007 10:45:40   

What's the type of the field? Or to be more specific what's the mapped .NET type?

Nullable types are not for reference types like "string", these can already have null values.

mikeg22
User
Posts: 411
Joined: 30-Jun-2005
# Posted on: 22-Aug-2007 15:33:03   

Walaa wrote:

What's the type of the field? Or to be more specific what's the mapped .NET type?

Nullable types are not for reference types like "string", these can already have null values.

They are Strings Guess that answers my question! simple_smile