public bool Equals(BaseMongoDocument <TId> other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Id.Equals(other.Id)); }
protected bool Equals(BaseMongoDocument other) { return(Id.Equals(other.Id)); }