Skip to content

Commit

Permalink
Added the Type and Size on the hashcode generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikependon committed Sep 10, 2021
1 parent e3cee73 commit 4060208
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions RepoDb.Core/RepoDb/DirectionalQueryField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,18 @@ public override int GetHashCode()
// Add the parameter direction
hashCode += Direction.GetHashCode();

// Add the type
if (Type != null)
{
hashCode += Type.GetHashCode();
}

// Add the size
if (Size.HasValue)
{
hashCode += Size.Value.GetHashCode();
}

// Set and return the hashcode
return (this.hashCode = hashCode).Value;
}
Expand Down

0 comments on commit 4060208

Please sign in to comment.