MigrationsScaffolder MigrationsScaffolder Class

Definition

public class MigrationsScaffolder
Public Class MigrationsScaffolder
Inheritance
System.ObjectSystem.Object
MigrationsScaffolderMigrationsScaffolder

Constructors

MigrationsScaffolder(ICurrentDbContext, IModel, IMigrationsAssembly, IMigrationsModelDiffer, IMigrationsIdGenerator, MigrationsCodeGenerator, IHistoryRepository, ILogger, IDatabaseProviderServices) MigrationsScaffolder(ICurrentDbContext, IModel, IMigrationsAssembly, IMigrationsModelDiffer, IMigrationsIdGenerator, MigrationsCodeGenerator, IHistoryRepository, ILogger(Of MigrationsScaffolder), IDatabaseProviderServices)

public MigrationsScaffolder(ICurrentDbContext currentContext, IModel model, IMigrationsAssembly migrationsAssembly, IMigrationsModelDiffer modelDiffer, IMigrationsIdGenerator idGenerator, MigrationsCodeGenerator migrationCodeGenerator, IHistoryRepository historyRepository, ILogger<MigrationsScaffolder> logger, IDatabaseProviderServices providerServices)
Public Sub New(currentContext As ICurrentDbContext, model As IModel, migrationsAssembly As IMigrationsAssembly, modelDiffer As IMigrationsModelDiffer, idGenerator As IMigrationsIdGenerator, migrationCodeGenerator As MigrationsCodeGenerator, historyRepository As IHistoryRepository, logger As ILogger(Of MigrationsScaffolder), providerServices As IDatabaseProviderServices)
Parameters
model
IModel IModel
logger
ILogger<MigrationsScaffolder> ILogger(Of MigrationsScaffolder)

Methods

Equals(Object) Equals(Object)

Inherited from System.Object

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

Inherited from System.Object

GetDirectory(String, String, String) GetDirectory(String, String, String)

protected virtual string GetDirectory(string projectDir, string siblingFileName, string subnamespace)
Protected Overridable Function GetDirectory(projectDir As String, siblingFileName As String, subnamespace As String) As String
Parameters
projectDir
System.String System.String
siblingFileName
System.String System.String
subnamespace
System.String System.String
Returns
System.String System.String

GetHashCode() GetHashCode()

Inherited from System.Object

GetNamespace(Type, String) GetNamespace(Type, String)

protected virtual string GetNamespace(Type siblingType, string defaultNamespace)
Protected Overridable Function GetNamespace(siblingType As Type, defaultNamespace As String) As String
Parameters
siblingType
System.Type System.Type
defaultNamespace
System.String System.String
Returns
System.String System.String

GetSubNamespace(String, String) GetSubNamespace(String, String)

protected virtual string GetSubNamespace(string rootNamespace, string namespace)
Protected Overridable Function GetSubNamespace(rootNamespace As String, namespace As String) As String
Parameters
rootNamespace
System.String System.String
namespace
System.String System.String
Returns
System.String System.String

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

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

Inherited from System.Object

RemoveMigration(String, String, Boolean) RemoveMigration(String, String, Boolean)

public virtual MigrationFiles RemoveMigration(string projectDir, string rootNamespace, bool force)
Public Overridable Function RemoveMigration(projectDir As String, rootNamespace As String, force As Boolean) As MigrationFiles
Parameters
projectDir
System.String System.String
rootNamespace
System.String System.String
force
System.Boolean System.Boolean
Returns

Save(String, ScaffoldedMigration, String) Save(String, ScaffoldedMigration, String)

public virtual MigrationFiles Save(string projectDir, ScaffoldedMigration migration, string outputDir)
Public Overridable Function Save(projectDir As String, migration As ScaffoldedMigration, outputDir As String) As MigrationFiles
Parameters
projectDir
System.String System.String
outputDir
System.String System.String
Returns

ScaffoldMigration(String, String, String) ScaffoldMigration(String, String, String)

public virtual ScaffoldedMigration ScaffoldMigration(string migrationName, string rootNamespace, string subNamespace = null)
Public Overridable Function ScaffoldMigration(migrationName As String, rootNamespace As String, subNamespace As String = Nothing) As ScaffoldedMigration
Parameters
migrationName
System.String System.String
rootNamespace
System.String System.String
subNamespace
System.String System.String
Returns

ToString() ToString()

Inherited from System.Object

TryGetProjectFile(String, String) TryGetProjectFile(String, String)

protected virtual string TryGetProjectFile(string projectDir, string fileName)
Protected Overridable Function TryGetProjectFile(projectDir As String, fileName As String) As String
Parameters
projectDir
System.String System.String
fileName
System.String System.String
Returns
System.String System.String