DbContextInfo.CreateInstance Method

Definition

If instances of the underlying DbContext type can be created, returns a new instance; otherwise returns null.

public virtual System.Data.Entity.DbContext CreateInstance ();
abstract member CreateInstance : unit -> System.Data.Entity.DbContext
override this.CreateInstance : unit -> System.Data.Entity.DbContext
Public Overridable Function CreateInstance () As DbContext

Returns

A DbContext instance.

Applies to