public static ModelElementObjectBase FindByElement(this IModelElementStorage modelElementStorage, ModelElementObjectBase property)
        {
            var originalProperty = modelElementStorage.GetModelElementTree(property.ModelDefinitionId).FindByElementId(property.Id.ToString());

            var result = new ModelElementObjectBase(originalProperty);

            if (originalProperty.LinkedModelDefinitionId.HasValue)
            {
                var linkedModel = modelElementStorage.GetModelElementTree(originalProperty.LinkedModelDefinitionId.Value);

                result.Children = result.Children.Union(linkedModel.Children).ToList();
            }

            return(result);
        }
Exemple #2
0
 public DynamicApiWarder(IModelElementStorage modelElementStorage)
 {
     this.modelElementStorage = modelElementStorage;
 }
Exemple #3
0
 public Circumciser(IModelElementStorage modelElementStorage)
 {
     this.modelElementStorage = modelElementStorage;
 }