NULL values

Nov 18, 2009 at 8:59 AM

Hi,

Question: If I have into a table a column that support NULL values how can I work with this. I saw that the Retina throw an exception "Unexpected critical exception occured. Please check the inner exception for more details". But if I look in the inner exception there isn't  any helpfull message. Please HLP.

 

DAniel.

Coordinator
Jan 3, 2010 at 4:04 PM

Hi Daniel, if a database column supports NULL values, in the Retina.NET entity you must define the property as nullable as well. If the property is a String, you must decorate it with a [NullableString] attribute and if the property is other type (like int, Guid, etc) then you must make it Nullable by defining the type as Nullable<int> (or using the C# sintactic sugar of int?).

Best regards,

Andres.

Jan 4, 2010 at 11:42 AM

Your post solve my problems.

10x.

Daniel.