public override bool Equals(object?obj) { ChildInterest ci = ((ChildInterest)obj); if (ci.Child.Equals(Child) && ci.Interest.Equals(Interest)) { return(true); } return(base.Equals(obj)); }
public void Update(ChildInterest toUpdate) { InterestId = toUpdate.InterestId; }