|
Hi,
I have a issue which is kinda interesting. i am using NH 1.2.1 with .NET 2.0
I have a C# class with a virtual property that returns a nullable type .
Class A
{
private byte? _byte;
Public virtual byte? prop1
{
get {return _byte;}
set {_byte=value;}
}
}
The HBM mapping file for this class has the the PROPERTY data type as byte( a normal C# byte).
The DB table for this class accepts null values for the field.
But when i try to insert NULL values , the system does not give me an error, because the mapping file does not have a nullable data type.
Why is this so?
Please explain. I tried this with all primitive types.
|