Ability to set the 'Is nullable' attribute in the designer

Posts   
 
    
ctadlock avatar
ctadlock
User
Posts: 60
Joined: 12-Feb-2004
# Posted on: 16-Sep-2005 21:07:35   

When an entity is mapped onto a view, it can't read the 'NULLABLE' metadata from the view (like it can for a table) so it sets all fields as 'is nullable' = false. This prevents you from setting the value of a field to null. This causes serious issues when the field is a nullable FK. There is no way to remove the relationship! I opened up my project using a custom property editor I built which directly manipulates the project object model; I didn't see a way to set a field to be nullable.

Is their any way to override the 'nullable' value of a field?

Thanks CT

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 16-Sep-2005 22:09:29   

set the field's SourceColumnIsNullable to true.

I'll add this to the 1.0.2005.1 designer. It's an oversight which should be there for entities mapped onto views.

Frans Bouma | Lead developer LLBLGen Pro
ctadlock avatar
ctadlock
User
Posts: 60
Joined: 12-Feb-2004
# Posted on: 16-Sep-2005 22:56:04   

Coo.

Once again, awesome support!

Thanks CT