public override RelationshipRecord Clone() { RelationshipRecord record = (new RelationshipRecord(Id)).initialize(InUse(), NextPropConflict, _firstNode, _secondNode, _type, _firstPrevRel, _firstNextRel, _secondPrevRel, _secondNextRel, _firstInFirstChain, _firstInSecondChain); record.SecondaryUnitId = SecondaryUnitId; return(record); }
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); } RelationshipRecord that = ( RelationshipRecord )o; return(_firstNode == that._firstNode && _secondNode == that._secondNode && _type == that._type && _firstPrevRel == that._firstPrevRel && _firstNextRel == that._firstNextRel && _secondPrevRel == that._secondPrevRel && _secondNextRel == that._secondNextRel && _firstInFirstChain == that._firstInFirstChain && _firstInSecondChain == that._firstInSecondChain); }