public override RelationshipGroupRecord Clone() { RelationshipGroupRecord clone = (new RelationshipGroupRecord(Id)).initialize(InUse(), _type, _firstOut, _firstIn, _firstLoop, _owningNode, _next); clone.SecondaryUnitId = SecondaryUnitId; return(clone); }
public override bool Equals(object o) { if (this == o) { return(true); } if (o == null || this.GetType() != o.GetType()) { return(false); } if (!base.Equals(o)) { return(false); } RelationshipGroupRecord that = ( RelationshipGroupRecord )o; return(_type == that._type && _next == that._next && _firstOut == that._firstOut && _firstIn == that._firstIn && _firstLoop == that._firstLoop && _owningNode == that._owningNode); // don't compare prev since it's not persisted }