0
Answered

SmallInt Validator

Richard Green 14 years ago updated by anonymous 9 years ago 2

I have the same issue with the lack of a smallint/short validator as documented in IDB-70. There is mention of a workaround, but no details. Can someone help me out?

Try processing each entity on retrieval and have the short value replaced with an integer value.

if (entity.Contains(Key))
{
  entity.SetValue<IntegerValue>(Key, entity.GetValue<ShortValue>(Key).Value);
}

Thanks.

Thanks Adam, that resolved this issue