38 lines
991 B
C#
38 lines
991 B
C#
using System;
|
|
using System.Reflection;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace Microsoft.EntityFrameworkCore
|
|
{
|
|
/// <summary>
|
|
/// Options for the database migration.
|
|
/// </summary>
|
|
public class DatabaseMigrationOptions
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets a logger of the type <see cref="ILogger"/>.
|
|
/// </summary>
|
|
public ILogger Logger { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the migrations table name.
|
|
/// </summary>
|
|
public string MigrationsTableName { get; set; } = "__migrations";
|
|
|
|
/// <summary>
|
|
/// Gets or sets the absolute path to the migration files.
|
|
/// </summary>
|
|
public string Path { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the source assembly for embedded files.
|
|
/// </summary>
|
|
public Assembly SourceAssembly { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets a delay to wait before a connect retry.
|
|
/// </summary>
|
|
public TimeSpan WaitDelay { get; set; } = TimeSpan.FromSeconds(1);
|
|
}
|
|
}
|