Skip to content

Commit

Permalink
Update EF extensions file name+location (dotnet#8425)
Browse files Browse the repository at this point in the history
  • Loading branch information
guardrex authored Sep 6, 2018
1 parent a79a244 commit 131960a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions aspnetcore/fundamentals/configuration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1469,17 +1469,17 @@ Create the custom configuration provider by inheriting from <xref:Microsoft.Exte

An `AddEFConfiguration` extension method permits adding the configuration source to a `ConfigurationBuilder`.

*EFConfigurationProvider/EFConfigurationExtensions.cs*:
*Extensions/EntityFrameworkExtensions.cs*:

::: moniker range=">= aspnetcore-2.0"

[!code-csharp[](index/samples/2.x/ConfigurationSample/EFConfigurationProvider/EFConfigurationExtensions.cs?name=snippet1)]
[!code-csharp[](index/samples/2.x/ConfigurationSample/Extensions/EntityFrameworkExtensions.cs?name=snippet1)]

::: moniker-end

::: moniker range="< aspnetcore-2.0"

[!code-csharp[](index/samples/1.x/ConfigurationSample/EFConfigurationProvider/EFConfigurationExtensions.cs?name=snippet1)]
[!code-csharp[](index/samples/1.x/ConfigurationSample/Extensions/EntityFrameworkExtensions.cs?name=snippet1)]

::: moniker-end

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using ConfigurationSample.EFConfigurationProvider;

namespace ConfigurationSample.EFConfigurationProvider
namespace ConfigurationSample.Extensions
{
#region snippet1
public static class EntityFrameworkExtensions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using ConfigurationSample.EFConfigurationProvider;
using ConfigurationSample.Extensions;

namespace ConfigurationSample
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using ConfigurationSample.EFConfigurationProvider;

namespace ConfigurationSample.EFConfigurationProvider
namespace ConfigurationSample.Extensions
{
#region snippet1
public static class EntityFrameworkExtensions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using ConfigurationSample.EFConfigurationProvider;
using ConfigurationSample.Extensions;
using System.Collections.Generic;

namespace ConfigurationSample
Expand Down

0 comments on commit 131960a

Please sign in to comment.