45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Umbraco.Core.Logging;
|
|
using Umbraco.Core.Persistence;
|
|
|
|
namespace Umbraco.Core.Migrations
|
|
{
|
|
/// <summary>
|
|
/// Provides context to migrations.
|
|
/// </summary>
|
|
public interface IMigrationContext
|
|
{
|
|
/// <summary>
|
|
/// Gets the logger.
|
|
/// </summary>
|
|
ILogger Logger { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the database instance.
|
|
/// </summary>
|
|
IUmbracoDatabase Database { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the Sql context.
|
|
/// </summary>
|
|
ISqlContext SqlContext { get; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the expression index.
|
|
/// </summary>
|
|
int Index { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether an expression is being built.
|
|
/// </summary>
|
|
bool BuildingExpression { get; set; }
|
|
|
|
/// <summary>
|
|
/// Adds a post-migration.
|
|
/// </summary>
|
|
void AddPostMigration<TMigration>()
|
|
where TMigration : IMigration;
|
|
}
|
|
}
|