LLBLGen3 - default value of string field

Posts   
 
    
miloszes
User
Posts: 222
Joined: 03-Apr-2007
# Posted on: 22-Jun-2010 09:41:43   

Hi all,

I have a field A of a string type. When column a in db is null the field A fills with string.empty value. How can I disable a mentioned feature (I want to have a null value)?

I've tried to override a OnSetValue and OnAuditLoadOfEntity methods, but stills some base methods changes a null into default(string) value.

Best Regards, MiloszeS

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 22-Jun-2010 10:04:51   

This is a project setting. ConvertNulledReferenceTypesToDefaultValue should be false /unchecked. It's on the outputsettingvalues tab in project properties.

miloszes
User
Posts: 222
Joined: 03-Apr-2007
# Posted on: 22-Jun-2010 10:12:30   

Cool,

Thanks, MiloszeS