DbContextActivator Class

Definition

Used to instantiate DbContext types at design time.

public static class DbContextActivator
type DbContextActivator = class
Public Class DbContextActivator
Inheritance
DbContextActivator

Methods

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.

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.

Applies to