Refactoring
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace Microsoft.EntityFrameworkCore
|
||||
{
|
||||
/// <summary>
|
||||
/// Options for the database provider.
|
||||
/// </summary>
|
||||
public class DatabaseProviderOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the absolute path to the database directory.
|
||||
/// </summary>
|
||||
public string AbsoluteBasePath { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user