public override BaseElement Clone() { DataAssociation clone = new DataAssociation(); clone.SetValues(this); return(clone); }
public void SetValues(DataAssociation otherAssociation) { sourceRef = otherAssociation.SourceRef; targetRef = otherAssociation.TargetRef; transformation = otherAssociation.Transformation; assignments = new List <Assignment>(); if (otherAssociation.Assignments != null && otherAssociation.Assignments.Count > 0) { foreach (Assignment assignment in otherAssociation.Assignments) { assignments.Add((Assignment)assignment.Clone()); } } }