Skip to content

Commit a664dd1

Browse files
committed
Design: Actually maintain Scaffolding compatibility
1 parent 937780b commit a664dd1

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

src/EFCore.Design/Design/Internal/DatabaseOperations.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,6 @@ public class DatabaseOperations
2121
private readonly string _rootNamespace;
2222
private readonly DesignTimeServicesBuilder _servicesBuilder;
2323

24-
// This obsolete constructor maintains compatibility with Scaffolding
25-
public DatabaseOperations(
26-
[NotNull] IOperationReporter reporter,
27-
[NotNull] Assembly startupAssembly,
28-
[CanBeNull] string environment,
29-
[NotNull] string projectDir,
30-
[NotNull] string rootNamespace,
31-
[CanBeNull] string contentRootPath)
32-
: this(reporter, startupAssembly, environment, projectDir, rootNamespace)
33-
{
34-
}
35-
3624
public DatabaseOperations(
3725
[NotNull] IOperationReporter reporter,
3826
[NotNull] Assembly startupAssembly,

src/EFCore.Design/Design/Internal/DbContextOperations.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ public class DbContextOperations
2525
private readonly string _environment;
2626
private readonly IServiceProvider _runtimeServices;
2727

28+
// This obsolete constructor maintains compatibility with Scaffolding
29+
public DbContextOperations(
30+
[NotNull] IOperationReporter reporter,
31+
[NotNull] Assembly assembly,
32+
[NotNull] Assembly startupAssembly,
33+
[CanBeNull] string environment,
34+
[CanBeNull] string contentRootPath)
35+
: this(reporter, assembly, startupAssembly, environment)
36+
{
37+
}
38+
2839
public DbContextOperations(
2940
[NotNull] IOperationReporter reporter,
3041
[NotNull] Assembly assembly,

0 commit comments

Comments
 (0)