/// <summary> /// The method is used to compare the <see cref="PersistentEntityBase"/> /// object with the currrent object /// Two PersistenEntities are equal if their unique identifiers are equal /// </summary> /// <param name="other"> /// The <see cref="PersistentEntityBase"/> /// to compare with /// </param> /// <returns> /// Returns true if the objects are identique /// </returns> public bool Equals(PersistentEntityBase other) { if (other == null) { return(false); } return(this.GetType() == other.GetType() && this._sysId == other._sysId); }
/// <summary> /// The method is used to compare the <see cref="PersistentEntityBase"/> /// object with the currrent object /// Two PersistenEntities are equal if their unique identifiers are equal /// </summary> /// <param name="other"> /// The <see cref="PersistentEntityBase"/> /// to compare with /// </param> /// <returns> /// Returns true if the objects are identique /// </returns> public bool Equals(PersistentEntityBase other) { if (other == null) { return false; } return this.GetType() == other.GetType() && this._sysId == other._sysId; }