public override int GetHashCode() { unchecked { var hashCode = RootId.GetHashCode(); hashCode = (hashCode * 397) ^ ParentId.GetHashCode(); hashCode = (hashCode * 397) ^ Id.GetHashCode(); return(hashCode); } }
public bool Equals(SessionId other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(RootId.Equals(other.RootId) && ParentId.Equals(other.ParentId) && Id.Equals(other.Id)); }
public override string ToString() { return(EntityName + "@" + Id.ToString() + "@@" + RootId.ToString() + "||" + base.ToString()); }