Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
v3.0.0.preview3
Browse files Browse the repository at this point in the history
  • Loading branch information
msawczyn committed Nov 23, 2020
1 parent 4155d30 commit 4c79950
Show file tree
Hide file tree
Showing 41 changed files with 539 additions and 4,503 deletions.
Binary file modified dist/Sawczyn.EFDesigner.EFModel.DslPackage.vsix
Binary file not shown.
20 changes: 19 additions & 1 deletion src/Dsl/DslDefinition.dsl
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,7 @@
<ShapeHasDecorators Position="InnerTopLeft" HorizontalOffset="0" VerticalOffset="0">
<IconDecorator Name="TransientGlyph" DisplayName="Transient Glyph" DefaultIcon="Resources\TransientClass.png" />
</ShapeHasDecorators>
<ShapeHasDecorators Position="InnerTopLeft" HorizontalOffset="0" VerticalOffset="0">
<ShapeHasDecorators Position="InnerTopLeft" HorizontalOffset="0.01" VerticalOffset="0">
<IconDecorator Name="NoGenGlyph" DisplayName="No Code Generation" DefaultIcon="Resources\No.png" />
</ShapeHasDecorators>
<ShapeHasDecorators Position="InnerTopLeft" HorizontalOffset="0" VerticalOffset="0">
Expand Down Expand Up @@ -2847,6 +2847,24 @@
</PropertyFilters>
</VisibilityPropertyPath>
</DecoratorMap>
<DecoratorMap>
<IconDecoratorMoniker Name="ClassShape/SQLGlyph" />
<VisibilityPropertyPath>
<DomainPropertyMoniker Name="ModelClass/GlyphType" />
<PropertyFilters>
<PropertyFilter FilteringValue="SQLGlyph" />
</PropertyFilters>
</VisibilityPropertyPath>
</DecoratorMap>
<DecoratorMap>
<IconDecoratorMoniker Name="ClassShape/DictionaryGlyph" />
<VisibilityPropertyPath>
<DomainPropertyMoniker Name="ModelClass/GlyphType" />
<PropertyFilters>
<PropertyFilter FilteringValue="DictionaryGlyph" />
</PropertyFilters>
</VisibilityPropertyPath>
</DecoratorMap>
<CompartmentShapeMoniker Name="ClassShape" />
<CompartmentMap DisplaysCustomString="true">
<CompartmentMoniker Name="ClassShape/AttributesCompartment" />
Expand Down
174 changes: 87 additions & 87 deletions src/Dsl/DslDefinition.dsl.diagram

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/Dsl/GeneratedCode/Diagram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,14 @@ public static void OnDecoratorsInitialized(object sender, global::System.EventAr
propertyInfo = new DslDiagrams::AssociatedPropertyInfo(global::Sawczyn.EFDesigner.EFModel.ModelClass.GenerateCodeDomainPropertyId);
propertyInfo.FilteringValues.Add("False");
DslDiagrams::ShapeElement.FindDecorator(shape.Decorators, "NoGenGlyph").AssociateVisibilityWith(shape.Store, propertyInfo);

propertyInfo = new DslDiagrams::AssociatedPropertyInfo(global::Sawczyn.EFDesigner.EFModel.ModelClass.GlyphTypeDomainPropertyId);
propertyInfo.FilteringValues.Add("SQLGlyph");
DslDiagrams::ShapeElement.FindDecorator(shape.Decorators, "SQLGlyph").AssociateVisibilityWith(shape.Store, propertyInfo);

propertyInfo = new DslDiagrams::AssociatedPropertyInfo(global::Sawczyn.EFDesigner.EFModel.ModelClass.GlyphTypeDomainPropertyId);
propertyInfo.FilteringValues.Add("DictionaryGlyph");
DslDiagrams::ShapeElement.FindDecorator(shape.Decorators, "DictionaryGlyph").AssociateVisibilityWith(shape.Store, propertyInfo);
}
}

Expand Down
Loading

0 comments on commit 4c79950

Please sign in to comment.