private bool Equals(VocabularyDomain that) { return(new EqualsBuilder().Append(this.id, that.id).Append( this.Type, that.Type).Append(this.Id, that.Id).Append(this.BusinessName, that.BusinessName).Append(this.Description, that.Description).IsEquals()); }
/// <summary> /// Compare to. /// </summary> /// /// <param name="obj">the obj</param> /// <returns>the int</returns> public int CompareTo(Object obj) { VocabularyDomain that = (VocabularyDomain)obj; return(new CompareToBuilder().Append(this.Type, that.Type) .Append(this.Id, that.Id).Append( this.BusinessName, that.BusinessName).Append( this.Description, that.Description) .ToComparison()); }