Skip to content

Commit

Permalink
add EF Core 8 handlebars support
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikEJ committed Nov 23, 2023
1 parent cc52f9f commit b541fac
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/GUI/RevEng.Core.60/ServiceProviderBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using EntityFrameworkCore.Scaffolding.Handlebars;
using ErikEJ.EntityFrameworkCore.SqlServer.Scaffolding;
using Humanizer.Inflections;
using Microsoft.EntityFrameworkCore.Design;
Expand All @@ -19,7 +20,6 @@
using SimplerSoftware.EntityFrameworkCore.SqlServer.NodaTime.Design;

#if !CORE80
using EntityFrameworkCore.Scaffolding.Handlebars;
using FirebirdSql.EntityFrameworkCore.Firebird.Design.Internal;
using Microsoft.EntityFrameworkCore.SqlServer.Design;
using Oracle.EntityFrameworkCore.Design.Internal;
Expand Down Expand Up @@ -64,7 +64,6 @@ public static IServiceCollection AddEfpt(this IServiceCollection serviceCollecti
serviceCollection.AddSingleton<ICandidateNamingService>(provider => new ReplacingCandidateNamingService(options.CustomReplacers, options.PreserveCasingWithRegex));
}

#if !CORE80
if (options.UseHandleBars)
{
serviceCollection.AddHandlebarsScaffolding(hbOptions =>
Expand All @@ -75,7 +74,7 @@ public static IServiceCollection AddEfpt(this IServiceCollection serviceCollecti
serviceCollection.AddSingleton<ITemplateFileService>(provider
=> new CustomTemplateFileService(options.OptionsPath));
}
#endif

if (options.UseInflector || options.UseLegacyPluralizer)
{
if (options.UseLegacyPluralizer)
Expand Down
3 changes: 1 addition & 2 deletions src/GUI/RevEng.Core.80/RevEng.Core.80.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

<ItemGroup>
<Compile Remove="..\RevEng.Core.60\CrmDatabaseModelFactory.cs" />
<Compile Remove="..\RevEng.Core.60\CustomTemplateFileService.cs" />
<Compile Remove="..\RevEng.Core.60\PatchedSqlServerDatabaseModelFactory.cs" />
</ItemGroup>

Expand All @@ -32,7 +31,7 @@

<ItemGroup>
<PackageReference Include="Bricelam.EntityFrameworkCore.Pluralizer" Version="1.0.0" />
<!--<PackageReference Include="EntityFrameworkCore.Scaffolding.Handlebars" Version="7.0.0" />-->
<PackageReference Include="EntityFrameworkCore.Scaffolding.Handlebars" Version="8.0.0-beta1" />
<!--<PackageReference Include="EntityFrameworkCore.Sqlite.NodaTime" Version="7.0.0" />-->
<!--<PackageReference Include="FirebirdSql.EntityFrameworkCore.Firebird" Version="9.2.0-alpha1" />-->
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.2" />
Expand Down
2 changes: 1 addition & 1 deletion src/GUI/efpt80.core/efpt80.core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.0" />
<PackageReference Include="EfCore.SchemaCompare" Version="8.0.0-rc2-0002" />
<PackageReference Include="EfCore.SchemaCompare" Version="8.0.0" />
</ItemGroup>

</Project>
Binary file modified src/GUI/lib/efpt80.exe.zip
Binary file not shown.
Binary file modified src/GUI/lib/efreveng80.exe.zip
Binary file not shown.

0 comments on commit b541fac

Please sign in to comment.