persistence/Persistence/Services/IArchiveService.cs

26 lines
800 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace Persistence.Services;
/// <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);
}