DbContextOperations DbContextOperations Class

Syntax

Declaration

public class DbContextOperationsPublic Class DbContextOperations

Inheritance Hierarchy

  • System.Object
    System.Object
  • DbContextOperations
    DbContextOperations

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

Methods summary

Constructors

  • DbContextOperations(IOperationReporter, Assembly, Assembly, String, String)
    DbContextOperations(IOperationReporter, Assembly, Assembly, String, String)
    public DbContextOperations(IOperationReporter reporter, Assembly assembly, Assembly startupAssembly, string environment, string contentRootPath)Public Sub New(reporter As IOperationReporter, assembly As Assembly, startupAssembly As Assembly, environment As String, contentRootPath As String)

    Parameters

    • reporter
    • assembly
      System.Reflection.Assembly
      System.Reflection.Assembly
    • startupAssembly
      System.Reflection.Assembly
      System.Reflection.Assembly
    • environment
      System.String
      System.String
    • contentRootPath
      System.String
      System.String

Methods

  • CreateContext(String)
    CreateContext(String)
    public virtual DbContext CreateContext(string contextType)Public Overridable Function CreateContext(contextType As String) As DbContext

    Parameters

    • contextType
      System.String
      System.String

    Returns

  • DropDatabase(String)
    DropDatabase(String)
    public virtual void DropDatabase(string contextType)Public Overridable Sub DropDatabase(contextType As String)

    Parameters

    • contextType
      System.String
      System.String
  • GetContextInfo(String)
    GetContextInfo(String)
    public virtual ContextInfo GetContextInfo(string contextType)Public Overridable Function GetContextInfo(contextType As String) As ContextInfo

    Parameters

    • contextType
      System.String
      System.String

    Returns

  • GetContextType(String)
    GetContextType(String)
    public virtual Type GetContextType(string name)Public Overridable Function GetContextType(name As String) As Type

    Parameters

    • name
      System.String
      System.String

    Returns

    • System.Type
      System.Type
  • GetContextTypes()
    GetContextTypes()
    public virtual IEnumerable<Type> GetContextTypes()Public Overridable Function GetContextTypes As IEnumerable(Of Type)

    Returns

    • System.Collections.Generic.IEnumerable<T><System.Type>
      System.Collections.Generic.IEnumerable<T>(Of System.Type)

Details

Assembly

Microsoft.EntityFrameworkCore.Design.dll