I’ve mostly operate on well known types: int, string and DateTime, and I’ve newer suspect that some hidden dragon is there… And so once I’ve decided to be more specific, we’ve got ushorts and other beautiful types..
And there is my waring: BE VERY CONSISTENT. If your property is ushort your mapping must be type UInt16, if you map it as Int16 you will end with Invalid Cast, and with no precise clue which property is guilty!
So again my piece of advice: if you mean ushort map UInt16, not anything else.
Advertisement