Skip to content

Commit

Permalink
[release/6.0-rc1] Revert ProviderCodeGenerator.RelationalDependencies…
Browse files Browse the repository at this point in the history
… change (#25595)

Part of #24743
  • Loading branch information
ajcvickers authored Aug 19, 2021
1 parent 30abd9b commit 5023baf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/EFCore.Relational/Scaffolding/ProviderCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ public abstract class ProviderCodeGenerator : IProviderConfigurationCodeGenerato
/// </summary>
/// <param name="dependencies"> The dependencies. </param>
protected ProviderCodeGenerator(ProviderCodeGeneratorDependencies dependencies)
=> RelationalDependencies = Check.NotNull(dependencies, nameof(dependencies));
=> Dependencies = Check.NotNull(dependencies, nameof(dependencies));

/// <summary>
/// Relational provider-specific dependencies for this service.
/// </summary>
protected virtual ProviderCodeGeneratorDependencies RelationalDependencies { get; }
protected virtual ProviderCodeGeneratorDependencies Dependencies { get; }

/// <summary>
/// Generates a method chain used to configure provider-specific options.
Expand All @@ -31,7 +31,7 @@ protected ProviderCodeGenerator(ProviderCodeGeneratorDependencies dependencies)
{
MethodCallCodeFragment? providerOptions = null;

foreach (var plugin in RelationalDependencies.Plugins)
foreach (var plugin in Dependencies.Plugins)
{
var chainedCall = plugin.GenerateProviderOptions();
if (chainedCall == null)
Expand Down Expand Up @@ -64,7 +64,7 @@ public abstract MethodCallCodeFragment GenerateUseProvider(
{
MethodCallCodeFragment? contextOptions = null;

foreach (var plugin in RelationalDependencies.Plugins)
foreach (var plugin in Dependencies.Plugins)
{
var chainedCall = plugin.GenerateContextOptions();
if (chainedCall == null)
Expand Down

0 comments on commit 5023baf

Please sign in to comment.