Skip to content

Commit

Permalink
revert use of .ApplyConfigurationsFromAssembly
Browse files Browse the repository at this point in the history
fixes #1950
  • Loading branch information
ErikEJ committed Nov 2, 2023
1 parent 66235c8 commit 26f889a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GUI/RevEng.Core.60/DbContextSplitter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ public static List<string> Split(string dbContextPath, string configNamespace, b

result.Add(configurationFilePath);

configurationLines.Add($"{new string(' ', 8)}modelBuilder.ApplyConfiguration(new Configurations.{entityName}Configuration());");

index++;
}

configurationLines.Add($"{new string(' ', 8)}modelBuilder.ApplyConfigurationsFromAssembly(typeof({dbContextName}).Assembly);");

var finalSource = BuildDbContext(configurationNamespace, configurationLines, File.ReadAllLines(dbContextFilePath, Encoding.UTF8));

ReverseEngineerRunner.RetryFileWrite(dbContextFilePath, finalSource);
Expand Down
Binary file modified src/GUI/lib/efreveng60.exe.zip
Binary file not shown.
Binary file modified src/GUI/lib/efreveng70.exe.zip
Binary file not shown.
Binary file modified src/GUI/lib/efreveng80.exe.zip
Binary file not shown.

0 comments on commit 26f889a

Please sign in to comment.