G
Guest
Hi,
Imagine that we have a database and one table. Stored procedure returns 3
columns of table: ID, name, value.
Name and value can be a null in database. How to map or represent such
values in .net code? When I map a null value to a string or double variable I
get an error.
I have heard that one of solutions can be converting and representing
db.null as a minimum value of used type. Is it a good technic? And what in
situaltion when I need all the values variable can represent from minimum to
maximum?
Thanks.
Przemo
Imagine that we have a database and one table. Stored procedure returns 3
columns of table: ID, name, value.
Name and value can be a null in database. How to map or represent such
values in .net code? When I map a null value to a string or double variable I
get an error.
I have heard that one of solutions can be converting and representing
db.null as a minimum value of used type. Is it a good technic? And what in
situaltion when I need all the values variable can represent from minimum to
maximum?
Thanks.
Przemo