コード例 #1
0
 protected bool Equals(GenericBaseEntity <TKEY> entity)
 {
     if (entity == null)
     {
         return(false);
     }
     if (GetType() != entity.GetType())
     {
         return(false);
     }
     return(_Id.Equals(entity.Id));
 }
コード例 #2
0
 public virtual int CompareTo(GenericBaseEntity <TKEY> other)
 {
     return(other.Id.GetHashCode().CompareTo(Id.GetHashCode()));
 }