Files
DP44/Common/DTS.CommonCore/Interface/Database/IDatabaseSwitchViewModel.cs
2026-04-17 14:55:32 -04:00

36 lines
1.2 KiB
C#

using DTS.Common.Base;
namespace DTS.Common.Interface.Database
{
/// <summary>
/// this viewmodel provides a way for transferring a remote database to a local database
/// it clears the local database and populates it with the remote databse
/// it requires a local database that has the right tables and stored procedures already
/// </summary>
public interface IDatabaseSwitchViewModel : IBaseViewModel
{
/// <summary>
/// the view associated with the model
/// </summary>
IDatabaseSwitchView View { get; set; }
/// <summary>
/// frees up any memory associated with viewmodel
/// </summary>
void Unset();
bool RemoteIsActive { get; }
string DefaultDbName { get; }
//void SetDefaultDbName(string defaultDbName);
void InitializeDbSettings(string defaultDbName, string dbHost, bool ntlmAuthentication, string dbUser,
string dbPassword);
void SwitchRemote();
void SwitchLocal();
string DbHost{ get; }
bool NTLMAuthentication{ get; }
string DbUser { get; }
string DbPassword { get; }
}
}