1

Closed

_isNullable property in the ColumnInfo object is always false

description

While using the NuSoft Framework I have noticed that the _isNullable property on the ColumnInfo object is always false. This causes validation errors when trying to save an entity that has a not mandatory String amongst its properties.
 
To resolve this issue I have added:
 
if (reader["IS_NULLABLE"].ToString() == "YES")
{
_isNullable = true;
}
 
in the constructor of the ColumnInfo class. Furthermore, I have also altered the GetValidationErrors method of the EntityBase class as in the attachment.
 
This solution means however that the nullable property is database driven not DataObjectField attribute driven. Any additional solution/comments are more then welcome!
 
I am using changeset 15851.
 
Regards,

file attachments

Closed Apr 4, 2008 at 3:16 AM by RossCode
Version release.

comments

RossCode wrote Mar 24, 2008 at 1:40 PM

Fixed. Thanks.

wrote Mar 24, 2008 at 1:40 PM

wrote Mar 24, 2008 at 1:40 PM

wrote Apr 4, 2008 at 3:16 AM

wrote Feb 14, 2013 at 12:16 AM

wrote May 16, 2013 at 4:27 AM