Skip to content

Commit

Permalink
Enable Oracle for EF Core 9 (#2711)
Browse files Browse the repository at this point in the history
* Enable Oracle for EF Core 9

* Update issue template
  • Loading branch information
ErikEJ authored Dec 7, 2024
1 parent 6b10197 commit 02d67f2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Create a bug report, feature proposal, or ask a question.

NOTICE: A bug report without sufficient technical and repro details and version information WILL BE CLOSED WITHOUT ANY FURTHER ACTION.
NOTICE: **A bug report without sufficient technical and reproduction details and version information WILL BE CLOSED WITHOUT ANY FURTHER ACTION.**

### Provide steps to reproduce a bug

Expand All @@ -10,11 +10,11 @@ Please include a **complete** description of the issue or link to a project that

- EF Core Power Tools version: (found in About dialog - blue questionmark icon on context menu)

- Exact Visual Studio version: (e.g. Visual Studio 2022 17.6.5)
- Exact Visual Studio version: (e.g. Visual Studio 2022 17.12.3)

- Database engine: (SQL Server, Azure SQL, Postgres, Oracle, Firebird, SQLite, MySQL)

- EF Core version in use: (e.g. EF Core 7)
- EF Core version in use: (e.g. EF Core 9)

- Is Handlebars templates used: no/yes

Expand Down
6 changes: 3 additions & 3 deletions src/Core/RevEng.Core.80/ServiceProviderBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
using Microsoft.EntityFrameworkCore.Storage;
using Microsoft.Extensions.DependencyInjection;
using Npgsql.EntityFrameworkCore.PostgreSQL.Design.Internal;
#if !CORE90
using Oracle.EntityFrameworkCore.Design.Internal;
#if !CORE90
using Pomelo.EntityFrameworkCore.MySql.Design.Internal;
#endif
using RevEng.Common;
Expand Down Expand Up @@ -121,12 +121,12 @@ public static IServiceCollection AddEfpt(this IServiceCollection serviceCollecti
}

break;

#endif
case DatabaseType.Oracle:
var oracleProvider = new OracleDesignTimeServices();
oracleProvider.ConfigureDesignTimeServices(serviceCollection);
break;

#if !CORE90
case DatabaseType.Firebird:
var firebirdProvider = new FbDesignTimeServices();
firebirdProvider.ConfigureDesignTimeServices(serviceCollection);
Expand Down
4 changes: 2 additions & 2 deletions src/Core/RevEng.Core.90/RevEng.Core.90.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.0" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime" Version="9.0.1" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite" Version="9.0.1" />
<!-- <PackageReference Include="Oracle.EntityFrameworkCore" Version="8.23.50" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql.NetTopologySuite" Version="8.0.2" />-->
<PackageReference Include="Oracle.EntityFrameworkCore" Version="9.23.60" />
<!-- <PackageReference Include="Pomelo.EntityFrameworkCore.MySql.NetTopologySuite" Version="8.0.2" />-->
<PackageReference Include="SimplerSoftware.EntityFrameworkCore.SqlServer.NodaTime" Version="9.0.0" />
<PackageReference Include="System.CodeDom" Version="8.0.0" />
</ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/GUI/RevEng.Shared/Providers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,9 @@ public static List<NuGetPackage> GetNeededPackages(DatabaseType databaseType, bo
case CodeGenerationMode.EFCore8:
pkgVersion = "8.23.50";
break;
case CodeGenerationMode.EFCore9:
pkgVersion = "9.23.60";
break;
}

packages.Add(new NuGetPackage
Expand Down

0 comments on commit 02d67f2

Please sign in to comment.