Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/6.0-rc1] Revert ProviderCodeGenerator.RelationalDependencies change #25595

Merged
merged 1 commit into from
Aug 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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