Skip to content

Commit

Permalink
Fix unneeded method call
Browse files Browse the repository at this point in the history
fixes #2236
  • Loading branch information
ErikEJ committed Mar 19, 2024
1 parent bad3e35 commit 36d6478
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Core/RevEng.Core.60/ReverseEngineerRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ public static ReverseEngineerResult GenerateFiles(ReverseEngineerCommandOptions
var index = dbContextLines.FindIndex(l => l.Contains(" OnModelCreatingPartial(modelBuilder);", StringComparison.Ordinal));
if (index != -1)
{
#if CORE70 || CORE80
#if CORE70
dbContextLines.Insert(index, " OnModelCreatingGeneratedProcedures(modelBuilder);");
#elif CORE80
#else
dbContextLines.Insert(index, " OnModelCreatingGeneratedProcedures(modelBuilder);");
#endif
Expand Down
3 changes: 2 additions & 1 deletion src/Core/RevEng.Core.80/DbContextExtensionsSqlQuery
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ namespace #NAMESPACE#
{
public static class DbContextExtensions
{
public static async Task<List<T>> SqlQueryAsync<T>(this DbContext db, string sql, object[] parameters = null, CancellationToken cancellationToken = default) where T : class
public static async Task<List<T>> SqlQueryAsync<T>(this DbContext db, string sql, object[] parameters = null, CancellationToken cancellationToken = default)
where T : class
{
if (parameters is null)
{
Expand Down
3 changes: 2 additions & 1 deletion src/Core/RevEng.Core.80/DbContextExtensionsSqlQuery.Sync
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ namespace #NAMESPACE#
{
public static class DbContextExtensions
{
public static List<T> SqlQuery<T>(this DbContext db, string sql, object[] parameters = null) where T : class
public static List<T> SqlQuery<T>(this DbContext db, string sql, object[] parameters = null)
where T : class
{
if (parameters is null)
{
Expand Down

0 comments on commit 36d6478

Please sign in to comment.