/// <summary> /// Checks the element parent. /// </summary> /// <param name="element">The element.</param> private void CheckElementParent(Element element) { Match match = parentRegex.Match(element.Genlinks); if (!string.IsNullOrEmpty(match.Value)) { if (!object.Equals(element, null)) { Element parentElement; string guid = sqlUtility.GetFieldValue(EATables.t_Object.ea_guid, EATables.t_Object.Name, match.Value); if (!string.IsNullOrEmpty(guid)) { parentElement = this.IAHost.Repository.GetElementByGuid(guid); } else { parentElement = Manipulation.AddElement(root, match.Value, ElementTypes.Class); } CheckConnectors(element, parentElement); } } }