DbContextOperations DbContextOperations Class

Definition

public class DbContextOperations
Public Class DbContextOperations
Inheritance
System.ObjectSystem.Object
DbContextOperationsDbContextOperations

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

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

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<System.Type> System.Collections.Generic.IEnumerable(Of System.Type)

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object