This question is locked. New answers and comments are not allowed.
I seem to be having a problem with something that should be really simple, mapping an enumeration. For some reason then value 0 is always stored in the db, no matter what value I assign to the entities field.
Then enumeration is:
Public Enum UomDistance As Integer
Mm = 1
Inch = 2
Foot = 3
Yard = 4
Meter = 5
End Enum
In the Forward Mapping wizard both type and SQL Type are set to integer. In the app.config it is:
<field name="_sizeOUM">
<extension key="db-column">
<extension key="db-sql-type" value="INT" />
<extension key="db-column-name" value="SizeUom" />
</extension>
</field>
I've search the docs and forums but don't see anything. Any thought about what might be causing this or how to dig deeper would be greatly appreciated.
Thanks
Chris
Then enumeration is:
Public Enum UomDistance As Integer
Mm = 1
Inch = 2
Foot = 3
Yard = 4
Meter = 5
End Enum
In the Forward Mapping wizard both type and SQL Type are set to integer. In the app.config it is:
<field name="_sizeOUM">
<extension key="db-column">
<extension key="db-sql-type" value="INT" />
<extension key="db-column-name" value="SizeUom" />
</extension>
</field>
I've search the docs and forums but don't see anything. Any thought about what might be causing this or how to dig deeper would be greatly appreciated.
Thanks
Chris