Exemplo n.º 1
0
        public override BaseElement Clone()
        {
            DataAssociation clone = new DataAssociation();

            clone.SetValues(this);
            return(clone);
        }
Exemplo n.º 2
0
        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());
                }
            }
        }