Class MigrationSource
The default implementation of a IFilteringMigrationSource.
Inherited Members
Namespace: FluentMigrator.Runner.Initialization
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public class MigrationSource : IFilteringMigrationSource, IMigrationSource
Constructors
| Edit this page View SourceMigrationSource(IAssemblySource, IMigrationRunnerConventions)
Initializes a new instance of the ProfileSource class.
Declaration
[Obsolete]
public MigrationSource(IAssemblySource source, IMigrationRunnerConventions conventions)
Parameters
Type | Name | Description |
---|---|---|
IAssemblySource | source | The assembly source |
IMigrationRunnerConventions | conventions | The migration runner conventions |
MigrationSource(IAssemblySource, IMigrationRunnerConventions, IServiceProvider, IEnumerable<IMigrationSourceItem>)
Initializes a new instance of the ProfileSource class.
Declaration
public MigrationSource(IAssemblySource source, IMigrationRunnerConventions conventions, IServiceProvider serviceProvider, IEnumerable<IMigrationSourceItem> sourceItems)
Parameters
Type | Name | Description |
---|---|---|
IAssemblySource | source | The assembly source |
IMigrationRunnerConventions | conventions | The migration runner conventios |
IServiceProvider | serviceProvider | The service provider |
IEnumerable<IMigrationSourceItem> | sourceItems | The additional migration source items |
Methods
| Edit this page View SourceGetMigrations()
Returns the instances for all found types implementing IMigration and having the MigrationAttribute
Declaration
public IEnumerable<IMigration> GetMigrations()
Returns
Type | Description |
---|---|
IEnumerable<IMigration> | the instances for all found types implementing IMigration and having the MigrationAttribute |
GetMigrations(Func<Type, bool>)
Returns the instances for all found types implementing IMigration
Declaration
public IEnumerable<IMigration> GetMigrations(Func<Type, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
Func<Type, bool> | predicate | The predicate used to select the types to instantiate |
Returns
Type | Description |
---|---|
IEnumerable<IMigration> | the instances for all found types implementing IMigration |