Update EF extensions file name+location (#8425)
parent
a79a244f40
commit
131960ad98
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue