Partager via


DesignTimeServiceCollectionExtensions.AddEntityFrameworkDesignTimeServices Méthode

Définition

Ajoute les services de conception 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

Paramètres

services
IServiceCollection

Auxquels IServiceCollection les services seront ajoutés.

reporter
Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter

Utilisé pour signaler les messages au moment du design.

applicationServiceProviderAccessor
Func<IServiceProvider>

Accesseur du fournisseur de services d’application.

Retours

L’servicesopérateur Cela permet de chaîner des appels de méthode supplémentaires.

Remarques

Pour plus d’informations et d’exemples, consultez Services de conception EF Core .

S’applique à