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

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
msawczyn committed Feb 7, 2020
1 parent b9bdd1b commit 0d95cbe
Show file tree
Hide file tree
Showing 16 changed files with 247 additions and 244 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -51,7 +51,7 @@ to <a href="https://www.jetbrains.com/?from=EFDesigner"><img src="https://msawcz
### Change Log

**2.0.0.0** (next version)
- **Dropped support for Visual Studio 2017**; was getting to be too much work to keep the tool viable for that Visual Studio version.
- **Dropped support for Visual Studio 2017**; was getting to be too much to keep the tool viable for that Visual Studio version.
- Added ability to specify foreign key properties
- Completely restructured assembly parsers; they now cleanly handle all combinations of EF6/EFCore2/EFCore3 and .NETCore2/.NETCore3/.NETFramework
- Modified assembly parsers to find declared foreign keys and add them to the model appropriately
Expand Down
9 changes: 1 addition & 8 deletions VSMarketplace blurb.md
Expand Up @@ -23,17 +23,10 @@ and many other nice-to-have bits.

For comprehensive documentation, please visit [the project's documentation site](https://msawczyn.github.io/EFDesigner/).

**Known Issues**

**Visual Studio 2019 v16.2.0 currently breaks the designer** -- you're not able to draw connections between
classes, enums, structs and comment blocks. [It was reported to Microsoft](https://developercommunity.visualstudio.com/content/problem/660095/dsl-tools-broken-in-1620-preview-4.html),
and has since been **fixed as of v16.2.5**, so if you're using a version between 16.2.0 and 16.2.4, you'll want
to upgrade to 16.2.5 or later in order to use not just this extension, but any extension based on the Microsoft Modeling SDK.

**ChangeLog**

**2.0.0.0** (next version)
- **Dropped support for Visual Studio 2017**; was getting to be too much work to keep the tool viable for that Visual Studio version.
- **Dropped support for Visual Studio 2017**; was getting to be too much to keep the tool viable for that Visual Studio version.
- **[NEW]** Added ability to specify foreign key properties
- **[NEW]** Modified assembly parsers to find declared foreign keys and add them to the model appropriately
- **[NEW]** Added options dialog (Tools/Options/Entity Framework Visual Editor)
Expand Down
2 changes: 1 addition & 1 deletion changelog.txt
@@ -1,5 +1,5 @@
2.0.0.0
- Dropped support for Visual Studio 2017; was getting to be too much work to keep the tool viable for that Visual Studio version.
- Dropped support for Visual Studio 2017; was getting to be too much to keep the tool viable for that Visual Studio version.
- Added ability to specify foreign key properties
- Completely restructured assembly parsers; they now cleanly handle all combinations of EF6/EFCore2/EFCore3 and .NETCore2/.NETCore3/.NETFramework
- Modified assembly parsers to find declared foreign keys and add them to the model appropriately
Expand Down
5 changes: 4 additions & 1 deletion src/Dsl/CustomCode/Extensions/StringExtensions.cs
Expand Up @@ -5,9 +5,12 @@ public static class StringExtensions
public static string Truncate(this string text, int length, string ellipsis = "...", bool keepFullWordAtEnd = true)
{

if (string.IsNullOrEmpty(text) || text.Length < length)
if (string.IsNullOrEmpty(text))
return string.Empty;

if (text.Length < length)
return text;

string result = text.TrimEnd().Substring(0, length);

if (keepFullWordAtEnd && result.IndexOf(' ') >= 0)
Expand Down
6 changes: 3 additions & 3 deletions src/Dsl/DslDefinition.dsl
Expand Up @@ -690,7 +690,7 @@
<ExternalTypeMoniker Name="/System/String" />
</Type>
</DomainProperty>
<DomainProperty Id="35baaadc-91c0-496a-9249-bb18163fd2c3" Description="Solely for display in the object list of the VStudio property window" Name="Name" DisplayName="Name" Kind="Calculated" SetterAccessModifier="Private" IsBrowsable="false" IsUIReadOnly="true">
<DomainProperty Id="35baaadc-91c0-496a-9249-bb18163fd2c3" Description="Solely for display in the object list of the VStudio property window" Name="Name" DisplayName="Name" Kind="Calculated" SetterAccessModifier="Private" IsElementName="true" IsBrowsable="false" IsUIReadOnly="true">
<Type>
<ExternalTypeMoniker Name="/System/String" />
</Type>
Expand Down Expand Up @@ -1020,7 +1020,7 @@
<ExternalTypeMoniker Name="/System/String" />
</Type>
</DomainProperty>
<DomainProperty Id="21f7d7e2-e0bc-4d59-b776-55a567c16cb0" Description="Solely for display in the object list of the VStudio property window" Name="Name" DisplayName="Name" Kind="Calculated" SetterAccessModifier="Private" IsBrowsable="false" IsUIReadOnly="true">
<DomainProperty Id="21f7d7e2-e0bc-4d59-b776-55a567c16cb0" Description="Solely for display in the object list of the VStudio property window" Name="Name" DisplayName="Name" Kind="Calculated" SetterAccessModifier="Private" IsElementName="true" IsBrowsable="false" IsUIReadOnly="true">
<Type>
<ExternalTypeMoniker Name="/System/String" />
</Type>
Expand Down Expand Up @@ -1096,7 +1096,7 @@
</DomainRelationship>
<DomainRelationship Id="c6eff342-0a73-4d2f-aa0e-b2811663fb60" Description="Inheritance between Classes." Name="Generalization" DisplayName="Inheritance" Namespace="Sawczyn.EFDesigner.EFModel">
<Properties>
<DomainProperty Id="76e2afe8-4124-448f-83e1-b6bef1d1e9d7" Description="Solely for display in the object list of the VStudio property window" Name="Name" DisplayName="Name" Kind="Calculated" SetterAccessModifier="Private" IsBrowsable="false" IsUIReadOnly="true">
<DomainProperty Id="76e2afe8-4124-448f-83e1-b6bef1d1e9d7" Description="Solely for display in the object list of the VStudio property window" Name="Name" DisplayName="Name" Kind="Calculated" SetterAccessModifier="Private" IsElementName="true" IsBrowsable="false" IsUIReadOnly="true">
<Type>
<ExternalTypeMoniker Name="/System/String" />
</Type>
Expand Down

0 comments on commit 0d95cbe

Please sign in to comment.