using DTS.Common.Base;
namespace DTS.Common.Interface.Database
{
///
/// 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
///
public interface IDatabaseSwitchViewModel : IBaseViewModel
{
///
/// the view associated with the model
///
IDatabaseSwitchView View { get; set; }
///
/// frees up any memory associated with viewmodel
///
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; }
}
}