public short? GetValueSmallInt(string key) { var value = GetValue(key); return value == DBNull.Value ? (short?) null : Convert.ToInt16(value); }