DesignTimeServiceCollectionExtensions.AddDbContextDesignTimeServices 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 services from the DbContext which are used at design time.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddDbContextDesignTimeServices (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.EntityFrameworkCore.DbContext context);
static member AddDbContextDesignTimeServices : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.EntityFrameworkCore.DbContext -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddDbContextDesignTimeServices (services As IServiceCollection, context As DbContext) As IServiceCollection
Parameters
- services
- IServiceCollection
The IServiceCollection the services will be added to.
Returns
The services
. This enables chaining additional method calls.
Remarks
See EF Core design-time services for more information and examples.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework