SQL Server DateTime default value

Posts   
 
    
Rogelio
User
Posts: 221
Joined: 29-Mar-2005
# Posted on: 04-Aug-2006 20:00:00   

Hi,

May be the default value for a DateTime type in the DBSpecific project could be the minimun value for the target database. For SQL Server it would be better to have a default value of January 1, 1753 instead of the actual DateTime.MinValue (January 1, 1).

[Edit]

Sorry I thought the dafult value when the fields are null are get from the DBSpecific project.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 04-Aug-2006 21:24:53   

Not in v2. They did in v1, but in v2, the default value is returned when the property is read and the property is not a nullable type and the value is null.

Frans Bouma | Lead developer LLBLGen Pro