what changes in the generated code with ConvertNulledReferenceTypesToDefaultValue?

Posts   
 
    
virginia
User
Posts: 27
Joined: 29-Nov-2016
# Posted on: 13-Aug-2020 15:51:56   

I changed the value of the property ConvertNulledReferenceTypesToDefaultValue in the project and regenerated the code. I can't copy all the generated code, only the changes, and I can't seem to find any. Does anyone know where in the code is this property reflected?

Using LLBL 5.3 (5.3.0) RTM and .net 4.5.2, connecting to sql server 2005, sql server 2012 and ora11g databases, db first, adapter model.

Thanks

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 13-Aug-2020 22:04:44   

The changes should be seen in HelperClasses\TypeDefaultValue.cs class inside the DBGeneric project.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 14-Aug-2020 09:18:51   

To be more specific: string and byte array get default values when this setting is set to true: string.Empty and new Byte[0], so entity fields which are null and of these types will return these default values instead of null.

Frans Bouma | Lead developer LLBLGen Pro