Compartilhar via


DesignTimeServiceCollectionExtensions.AddEntityFrameworkDesignTimeServices Método

Definição

Adiciona os serviços de tempo de design do Entity Framework Core.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddEntityFrameworkDesignTimeServices (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter reporter = default, Func<IServiceProvider> applicationServiceProviderAccessor = default);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddEntityFrameworkDesignTimeServices (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter? reporter = default, Func<IServiceProvider>? applicationServiceProviderAccessor = default);
static member AddEntityFrameworkDesignTimeServices : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter * Func<IServiceProvider> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddEntityFrameworkDesignTimeServices (services As IServiceCollection, Optional reporter As IOperationReporter = Nothing, Optional applicationServiceProviderAccessor As Func(Of IServiceProvider) = Nothing) As IServiceCollection

Parâmetros

services
IServiceCollection

Os IServiceCollection serviços serão adicionados.

reporter
Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter

Usado para relatar mensagens de tempo de design.

applicationServiceProviderAccessor
Func<IServiceProvider>

Um acessador para o provedor de serviços de aplicativo.

Retornos

O services. Isso permite encadear chamadas de método adicionais.

Comentários

Confira Serviços de tempo de design do EF Core para obter mais informações e exemplos.

Aplica-se a