init
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user