Class ProfileLoader
The default implementation of the IProfileLoader
Implements
Inherited Members
Namespace: FluentMigrator.Runner
Assembly: FluentMigrator.Runner.dll
Syntax
public class ProfileLoader : IProfileLoader
Constructors
| Edit this page View SourceProfileLoader(IRunnerContext, IMigrationRunner, IMigrationRunnerConventions)
Initializes a new instance of the ProfileLoader class.
Declaration
[Obsolete]
public ProfileLoader(IRunnerContext runnerContext, IMigrationRunner runner, IMigrationRunnerConventions conventions)
Parameters
Type | Name | Description |
---|---|---|
IRunnerContext | runnerContext | The migration runner context |
IMigrationRunner | runner | The migration runner |
IMigrationRunnerConventions | conventions | The migration runner conventions |
ProfileLoader(IOptions<RunnerOptions>, IProfileSource, IServiceProvider)
Initializes a new instance of the ProfileLoader class.
Declaration
public ProfileLoader(IOptions<RunnerOptions> options, IProfileSource source, IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
IOptions<RunnerOptions> | options | The runner options |
IProfileSource | source | The profile source |
IServiceProvider | serviceProvider | The service provider |
Properties
| Edit this page View SourceProfiles
Gets all found profiles
Declaration
public IEnumerable<IMigration> Profiles { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IMigration> |
SupportsParameterlessApplyProfile
Gets a value indicating whether this instance allows a call to ApplyProfiles()
Declaration
[Obsolete]
public bool SupportsParameterlessApplyProfile { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceApplyProfiles()
Apply all loaded profiles
Declaration
[Obsolete]
public void ApplyProfiles()
ApplyProfiles(IMigrationRunner)
Apply all loaded profiles with the given runner
Declaration
public void ApplyProfiles(IMigrationRunner runner)
Parameters
Type | Name | Description |
---|---|---|
IMigrationRunner | runner | The migration runner |
FindProfilesIn(IAssemblyCollection, string)
Find all profile name tagged migrations in the given assembly collection
Declaration
[Obsolete]
public IEnumerable<IMigration> FindProfilesIn(IAssemblyCollection assemblies, string profile)
Parameters
Type | Name | Description |
---|---|---|
IAssemblyCollection | assemblies | The assemblies to load the profile tagged migrations from |
string | profile | The profile name to search the migrations for |
Returns
Type | Description |
---|---|
IEnumerable<IMigration> | The found migrations |