Class MigrationEntryService
Manages migration entries in the database
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public sealed class MigrationEntryService : ScopeRepositoryService, IService, IMigrationEntryService
Constructors
MigrationEntryService(IDatabaseUnitOfWorkProvider, RepositoryFactory, ILogger, IEventMessagesFactory)
Declaration
public MigrationEntryService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory, ILogger logger, IEventMessagesFactory eventMessagesFactory)
Parameters
Methods
CreateEntry(String, SemVersion)
Creates a migration entry, will throw an exception if it already exists
Declaration
public IMigrationEntry CreateEntry(string migrationName, SemVersion version)
Parameters
Type |
Name |
Description |
System.String |
migrationName |
|
Semver.SemVersion |
version |
|
Returns
FindEntry(String, SemVersion)
Finds a migration by name and version, returns null if not found
Declaration
public IMigrationEntry FindEntry(string migrationName, SemVersion version)
Parameters
Type |
Name |
Description |
System.String |
migrationName |
|
Semver.SemVersion |
version |
|
Returns
GetAll(String)
Gets all entries for a given migration name
Declaration
public IEnumerable<IMigrationEntry> GetAll(string migrationName)
Parameters
Type |
Name |
Description |
System.String |
migrationName |
|
Returns