1
0
Files
common/AMWD.Common.EntityFrameworkCore/Utilities/DatabaseMigrationOptions.cs
2021-10-22 21:12:32 +02:00

32 lines
809 B
C#

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; }
}
}