Skip to content

Commit

Permalink
Attempt to enable schema compare for EF Core 9 (#2648)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEJ authored Nov 24, 2024
1 parent 8b0aebf commit 1dbbde8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Core/efpt90.core/efpt90.core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.0" />
<!--<PackageReference Include="EfCore.SchemaCompare" Version="8.0.4" />-->
<PackageReference Include="EfCore.SchemaCompare" Version="8.0.4" />
</ItemGroup>

</Project>
7 changes: 6 additions & 1 deletion src/GUI/Shared/Handlers/Compare/CompareHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public async System.Threading.Tasks.Task HandleComparisonAsync(string outputPath
return;
}

if (version.Major != 6 && version.Major != 7 && version.Major != 8)
if (version.Major != 6 && version.Major != 7 && version.Major != 8 && version.Major != 9)
{
VSHelper.ShowError(CompareLocale.VersionSupported);
return;
Expand All @@ -87,6 +87,11 @@ public async System.Threading.Tasks.Task HandleComparisonAsync(string outputPath
nugetHelper.InstallPackage("EfCore.SchemaCompare", project, new NuGetVersion(8, 1, 0));
nugetHelper.InstallPackage("Microsoft.EntityFrameworkCore.Design", project, new NuGetVersion(8, 0, 0));
}
else if (version.Major == 9)
{
nugetHelper.InstallPackage("EfCore.SchemaCompare", project, new NuGetVersion(8, 4, 0));
nugetHelper.InstallPackage("Microsoft.EntityFrameworkCore.Design", project, new NuGetVersion(9, 0, 0));
}

VSHelper.ShowError(CompareLocale.InstallingEfCoreSchemaCompare);
return;
Expand Down
Binary file modified src/GUI/lib/efpt90.exe.zip
Binary file not shown.

0 comments on commit 1dbbde8

Please sign in to comment.