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