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

Commit

Permalink
2.0.5.4
Browse files Browse the repository at this point in the history
   - Fixed a edge condition where an error would be thrown when deleting an association
  • Loading branch information
msawczyn committed Aug 26, 2020
1 parent 684c195 commit 46bac52
Show file tree
Hide file tree
Showing 17 changed files with 31 additions and 21 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ to <a href="https://www.jetbrains.com/?from=EFDesigner"><img src="https://msawcz

### Change Log

**2.0.5.3**
**2.0.5.4**
- Fixed a edge condition where an error would be thrown when deleting an association

<details>
<summary><b>2.0.5.3</b></summary>

- Provide option to save diagrams as uncompressed XML to facilitate version control (in Tools/Options/Entity Framework Visual Editor)
- Enhanced error reporting for assembly import errors
- Assembly import can now process assemblies with more than one DbContext class
Expand Down
3 changes: 3 additions & 0 deletions VSMarketplace blurb.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ For comprehensive documentation, please visit [the project's documentation site]

**ChangeLog**

**2.0.5.4**
- Fixed a edge condition where an error would be thrown when deleting an association

**2.0.5.3**
- **[NEW]** Provide option to save diagrams as uncompressed XML to facilitate version control (in Tools/Options/Entity Framework Visual Editor)
- **[NEW]** Enhanced error reporting for assembly import errors
Expand Down
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2.0.5.4
- Fixed a edge condition where an error would be thrown when deleting an association

2.0.5.3
- Provide option to save diagrams as uncompressed XML to facilitate version control (in Tools/Options/Entity Framework Visual Editor)
- Enhanced error reporting for assembly import errors
Expand Down
Binary file modified dist/Sawczyn.EFDesigner.EFModel.DslPackage.vsix
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Dsl/CustomCode/Rules/AssociationDeletingRules.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public override void ElementDeleting(ElementDeletingEventArgs e)

List<ModelAttribute> unnecessaryProperties = element.Dependent?.AllAttributes?.Where(x => x.IsForeignKeyFor == element.Id && !x.IsIdentity).ToList();

if (unnecessaryProperties?.Any() != true)
if (unnecessaryProperties?.Any() == true)
{
WarningDisplay.Show($"{element.GetDisplayText()} doesn't specify defined foreign keys. Removing foreign key attribute(s) {string.Join(", ", unnecessaryProperties.Select(x => x.GetDisplayText()))}");

Expand Down
Loading

0 comments on commit 46bac52

Please sign in to comment.