DesignTimeServiceCollectionExtensions.AddEntityFrameworkDesignTimeServices Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for