protected bool Equals(GenericEntity entity) { if (entity == null) { return(false); } if (!Equals(Id, entity.Id)) { return(false); } return(true); }
public virtual int CompareTo(GenericEntity other) { return(other.Id.CompareTo(Id)); }