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); }
public DynamicApiWarder(IModelElementStorage modelElementStorage) { this.modelElementStorage = modelElementStorage; }
public Circumciser(IModelElementStorage modelElementStorage) { this.modelElementStorage = modelElementStorage; }