Skip to content

Commit

Permalink
Show warning sign if there are reveng issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEJ committed Nov 27, 2024
1 parent d7b23d1 commit bd8aa11
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ await VS.MessageBox.ShowAsync(

if (errors != ReverseEngineerLocale.ModelGeneratedSuccesfully + Environment.NewLine)
{
VSHelper.ShowMessage(errors);
VSHelper.ShowWarning(errors);
}

if (revEngResult.EntityErrors.Any())
Expand Down
2 changes: 1 addition & 1 deletion src/GUI/Shared/Helpers/ReverseEngineerHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public string DropTemplates(string optionsPath, string projectPath, CodeGenerati
{
list.Add(new CodeGenerationItem { Key = (int)CodeGenerationMode.EFCore8, Value = "EF Core 8" });
list.Add(new CodeGenerationItem { Key = (int)CodeGenerationMode.EFCore7, Value = "EF Core 7" });
list.Add(new CodeGenerationItem { Key = (int)CodeGenerationMode.EFCore9, Value = "EF Core 9 (preview)" });
list.Add(new CodeGenerationItem { Key = (int)CodeGenerationMode.EFCore9, Value = "EF Core 9" });
}

if (!list.Any())
Expand Down
5 changes: 5 additions & 0 deletions src/GUI/Shared/Helpers/VSHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@ public static VSConstants.MessageBoxResult ShowMessage(string messageText)
{
return VS.MessageBox.Show("EF Core Power Tools", messageText, buttons: OLEMSGBUTTON.OLEMSGBUTTON_OK);
}

public static VSConstants.MessageBoxResult ShowWarning(string messageText)
{
return VS.MessageBox.Show("EF Core Power Tools", messageText, buttons: OLEMSGBUTTON.OLEMSGBUTTON_OK, icon: OLEMSGICON.OLEMSGICON_WARNING);
}
}
}

0 comments on commit bd8aa11

Please sign in to comment.