public override int GetHashCode() { unchecked { var hashCode = EntityGuid.GetHashCode(); hashCode = (hashCode * 397) ^ AttributeGuid.GetHashCode(); hashCode = (hashCode * 397) ^ (TagName != null ? TagName.GetHashCode() : 0); return(hashCode); } }
public bool Equals(EntityAttributeModel other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(EntityGuid.Equals(other.EntityGuid) && AttributeGuid.Equals(other.AttributeGuid) && string.Equals(TagName, other.TagName)); }