1
0

Refactoring

This commit is contained in:
2021-10-22 21:05:37 +02:00
commit ca9de13c9e
43 changed files with 5145 additions and 0 deletions

View File

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

View File

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