How to handel an 'Integer not-null field'
Posted: Mon 17 Aug 2009 09:44
Hello,
I have a table with a colum 'Total' of type: Number(12) not NULL.
I use devart LINQ-to_slq to create a class.
How do you handle this in the interface when the field has a value NULL?
I don't want to show the default text 'Input string was not in the correct format', but I cannot 'catch' this value to use my own validation-rules because the interface (onChange..) does'n allow a null-value)
When I add a new record it shows a '0' in the field and I prefer to show an empty field.
The solution I came up with, is to make the column a NULL-column when creating the class. In my validation-rules I can catch a null-value,
but that doens't feel good.
Is ther another solution?
Thanks in advance.
(I use an Oracle database with WPF v2008)
I have a table with a colum 'Total' of type: Number(12) not NULL.
I use devart LINQ-to_slq to create a class.
How do you handle this in the interface when the field has a value NULL?
I don't want to show the default text 'Input string was not in the correct format', but I cannot 'catch' this value to use my own validation-rules because the interface (onChange..) does'n allow a null-value)
When I add a new record it shows a '0' in the field and I prefer to show an empty field.
The solution I came up with, is to make the column a NULL-column when creating the class. In my validation-rules I can catch a null-value,
but that doens't feel good.
Is ther another solution?
Thanks in advance.
(I use an Oracle database with WPF v2008)