I use custom TypeHandler with no problem, but i declare a type handler
in 
SqlMap.config

Like:

<typeHandler type="System.Decimal" dbType="Decimal"
callback="persistence.access.mapper.AccessDecimalTypeHandlerCallBack,Per
sistence.Access"></typeHandler>

But I belive thath set TypeHandler in Property works fine, set up a
breakpoint in 

IBatisNet.DataMapper.MappedStatements. ApplyResultMap( ... ) in Line 277

An see if the value of property.TypeHandler is correct.
 
First try to replace the #ShipmentId#, # Pieces #, #Weight#, #Length#,
...
in the insertShipmentDimensions for ?,?,?,etc .. or named parameters
@ShipmentId, @Pieces, etc ..
I think ## is interpreted as inline parameter ingnoring your
parameterMap configuration ;-).

Note: MS access no support milliseconds in DateTime but OleDB provider
support it. That cause an error when you try to INSERT/UPDATE a DateTime
with not milliseconds set to cero, I fix this with a TypeHandler ;-)

Hope this help



Reply via email to