Share via


DbContextActivator Class

Definition

Used to instantiate DbContext types at design time.

[System.Runtime.CompilerServices.Nullable(0)]
public static class DbContextActivator
public static class DbContextActivator
[<System.Runtime.CompilerServices.Nullable(0)>]
type DbContextActivator = class
type DbContextActivator = class
Public Class DbContextActivator
Inheritance
DbContextActivator
Attributes

Methods

Name Description
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