public override object GetValue(int ordinal)
{
object value = reader.GetValue(ordinal);
if (types != null)
{
if (!(value is DBNull) && value.GetType()
!= types[ordinal].ClrEquivalentType)
value = ChangeType(value, types[ordinal].ClrEquivalentType);
}
return value;
}