31 lines
942 B
C#
31 lines
942 B
C#
|
|
namespace Avalonia_EFCore.Database
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// SQLite 专用 DbContext,用于隔离 SQLite 迁移集。
|
|||
|
|
/// </summary>
|
|||
|
|
public sealed class SqliteAppDataContext(DatabaseConfiguration dbConfig) : AppDataContext(dbConfig)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// SQL Server 专用 DbContext,用于隔离 SQL Server 迁移集。
|
|||
|
|
/// </summary>
|
|||
|
|
public sealed class SqlServerAppDataContext(DatabaseConfiguration dbConfig) : AppDataContext(dbConfig)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// PostgreSQL 专用 DbContext,用于隔离 PostgreSQL 迁移集。
|
|||
|
|
/// </summary>
|
|||
|
|
public sealed class PostgreSqlAppDataContext(DatabaseConfiguration dbConfig) : AppDataContext(dbConfig)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// MySQL 专用 DbContext,用于隔离 MySQL 迁移集。
|
|||
|
|
/// </summary>
|
|||
|
|
public sealed class MySqlAppDataContext(DatabaseConfiguration dbConfig) : AppDataContext(dbConfig)
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
}
|