Share via


DesignTimeServiceCollectionExtensions.AddEntityFrameworkDesignTimeServices Method

Definition

Adds the Entity Framework Core design-time services.

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

Parameters

services
IServiceCollection

The IServiceCollection the services will be added to.

reporter
Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter

Used to report design-time messages.

applicationServiceProviderAccessor
Func<IServiceProvider>

An accessor to the application service provider.

Returns

The services. This enables chaining additional method calls.

Remarks

See EF Core design-time services for more information and examples.

Applies to