protected bool Equals(GenericBaseEntity <TKEY> entity) { if (entity == null) { return(false); } if (GetType() != entity.GetType()) { return(false); } return(_Id.Equals(entity.Id)); }
public virtual int CompareTo(GenericBaseEntity <TKEY> other) { return(other.Id.GetHashCode().CompareTo(Id.GetHashCode())); }