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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework