DbContextActivator Class

Definition

Used to instantiate DbContext types at design time.

C#
public static class DbContextActivator
Inheritance
DbContextActivator

Methods

CreateInstance(Type, Assembly, IOperationReportHandler, String[])

Creates an instance of the specified DbContext type using the standard design-time mechanisms. When available, this will use any IDesignTimeDbContextFactory<TContext> implementations or the application's service provider.

CreateInstance(Type, Assembly, IOperationReportHandler)

Creates an instance of the specified DbContext type using the standard design-time mechanisms. When available, this will use any IDesignTimeDbContextFactory<TContext> implementations or the application's service provider.

Applies to

Product Versions
Entity Framework Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0