Update EF extensions file name+location (#8425)

pull/8419/head
Luke Latham 2018-09-06 09:52:08 -05:00 committed by GitHub
parent a79a244f40
commit 131960ad98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using ConfigurationSample.EFConfigurationProvider;
using ConfigurationSample.Extensions;
namespace ConfigurationSample
{

View File

@ -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

View File

@ -3,7 +3,7 @@ using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using ConfigurationSample.EFConfigurationProvider;
using ConfigurationSample.Extensions;
using System.Collections.Generic;
namespace ConfigurationSample