SQL Server 2005 XML field type - nullable?

Posts   
 
    
morrisb
User
Posts: 13
Joined: 24-Jun-2008
# Posted on: 20-Aug-2008 15:10:37   

I've got a couple of nullable XML fields in my SQL table. When I run LLBLGen it creates an entity that maps non-nullable strings to these fields.

Is there an option to make these properties nullable?

Thanks.

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 20-Aug-2008 15:26:45   

.NET 2.0+ nullable dataypes are only available for value types. Reference types like strings can have a value of null by default.

morrisb
User
Posts: 13
Joined: 24-Jun-2008
# Posted on: 20-Aug-2008 15:29:59   

Of course! Forget I said anything...

Thanks!

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 20-Aug-2008 15:33:49   

no prob simple_smile