Hi all!
If i put the lines:
<many-to-one name="Salidemn" column="SALIDEMN" class="MapeamentoOR.Salminat,MapeamentoOR" />
<many-to-one name="Sagidest" column="SAGIDEST" class="MapeamentoOR.Sagcdstt,MapeamentoOR" />
This error message is displayed:
System.InvalidCastException: Specified cast is not valid.
But when i change it to:
<property column="SALIDEMN" type="Decimal" name="Salidemn" />
<property column="SAGIDEST" type="Decimal" name="Sagidest" />
The error message is not displayed.
Why?
I have a gridview that displays the Location(SALIDEMN) and the Status(SAGIDEST).
I need to link the description fields to its current pks.
SALIDEMN = 1: Ore Mine 1
Status = 2: Active
Could someone help me on it?
Regards,
|