public bool? GetValueBit(string key) { var value = GetValue(key); return value == DBNull.Value ? (bool?) null : Convert.ToBoolean(value); }