This project is read-only.

NULL values

Nov 18, 2009 at 9:59 AM


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.



Jan 3, 2010 at 5: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,


Jan 4, 2010 at 12:42 PM

Your post solve my problems.