Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# ThinkInLife 9/23/2010 12:31 PM
i want to know why the identity is initialed to -1 in the default constructor and set the property 'unsaved-value' to -1?
why not 0?
Don't tell me it is personal preference?
# martijnb 10/6/2010 1:13 PM
Well, this is from the time that you had to explicitly set the 'unsaved-value'. At that time I thought it was more clear to use -1 as unsaved-indicator. Nowadays it's just extra work, I agree.