26 lines
814 B
C#
26 lines
814 B
C#
namespace DD.Persistence.Services.Interfaces;
|
||
|
||
/// <summary>
|
||
/// Сервис по работе с БД
|
||
/// </summary>
|
||
internal interface IArchiveService
|
||
{
|
||
/// <summary>
|
||
/// Переименование БД
|
||
/// </summary>
|
||
/// <param name="connectionString"></param>
|
||
/// <param name="databaseName"></param>
|
||
/// <param name="token"></param>
|
||
/// <returns></returns>
|
||
Task RenameDatabase(string connectionString, string databaseName, CancellationToken token);
|
||
|
||
/// <summary>
|
||
/// Создание БД
|
||
/// </summary>
|
||
/// <param name="connectionString"></param>
|
||
/// <param name="databaseName"></param>
|
||
/// <param name="token"></param>
|
||
/// <returns></returns>
|
||
Task CreateDatabase(string connectionString, string databaseName, CancellationToken token);
|
||
}
|