public bool Equals(Common other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(string.Equals(Owner, other.Owner) && CreatedUtc.Equals(other.CreatedUtc) && ModifiedUtc.Equals(other.ModifiedUtc) && PublishedUtc.Equals(other.PublishedUtc) && Container == other.Container); }
//////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// /// <param name="other"> An object to compare with this object. </param> /// /// <returns> /// true if the current object is equal to the <paramref name="other">other</paramref> parameter; /// otherwise, false. /// </returns> //////////////////////////////////////////////////////////////////////////////////////////////////// public bool Equals(Motorcycle other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Id == other.Id && TenantId == other.TenantId && IsDeleted == other.IsDeleted && string.Equals(Make, other.Make, StringComparison.CurrentCulture) && string.Equals(Model, other.Model, StringComparison.CurrentCulture) && Year == other.Year && string.Equals(Vin, other.Vin, StringComparison.CurrentCulture) && CreatedUtc.Equals(other.CreatedUtc) && ModifiedUtc.Equals(other.ModifiedUtc)); }