public override int GetHashCode() { int hash = 1; if (UserName.Length != 0) { hash ^= UserName.GetHashCode(); } if (BookName.Length != 0) { hash ^= BookName.GetHashCode(); } if (BorrowTime.Length != 0) { hash ^= BorrowTime.GetHashCode(); } if (ReturnTime.Length != 0) { hash ^= ReturnTime.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Returns if the specific equipment object contains a query string /// </summary> /// <param name="query">The query to search for</param> /// <returns></returns> public bool ContainsQueryString(string query) { if (string.IsNullOrWhiteSpace(query)) { return(false); } if (Note != null) { if (Note.ContainsInsensitive(query)) { return(true); } } if (EquipmentAge != null) { if (EquipmentAge.ToString().ContainsInsensitive(query)) { return(true); } } if (BorrowTime != null) { if (BorrowTime.ToString().ContainsInsensitive(query)) { return(true); } } if (Type != null) { if (Type.Type.ContainsInsensitive(query)) { return(true); } } if (Location != null) { if (Location.LocationString.ContainsInsensitive(query)) { return(true); } } if (Name != null) { if (Name.ContainsInsensitive(query)) { return(true); } } if (ManuelId.ToString().ContainsInsensitive(query)) { return(true); } return(false); }