namespace DbAPI.Connections { public interface IConnectionDetails { /// /// Whether NTLM Authentication should be used /// bool UseNTLMAuthentication { get; set; } /// /// when connecting to a database with a specific user/pwd, what user to use /// string DbUser { get; set; } /// /// When connecting to a database with a specific user/pwd, what pwd to use /// string DbUserPassword { get; set; } /// /// When connecting to a LocalDB, what the name of the instance should be /// string InstanceName { get; set; } /// /// When connecting to a remote DB, what server the DB is on /// string DbServer { get; set; } /// /// Name of database to connect to /// string DbName { get; set; } /// /// Whether connecting to a LocalDB or a remote DB /// bool UsingCentralizedDb { get; set; } /// /// path to db files if using LocalDB /// string DbFolderPath { get; set; } /// /// path to attach.bat if using LocalDB /// string AttachDbsBatPath { get; set; } /// /// The path to the SQLCMD.EXE that we want to use /// string ODBCToolsPath { get; set; } /// /// a string suitable for SqlClient to connect to /// /// string GetConnectionString(); /// /// returns a deep copy of connection details /// /// IConnectionDetails Clone(); /// /// Path to SQL Server when using LocalDB /// string SqlDbPath { get; set; } /// /// holds the code version of the database, what we would use if available /// int ClientDbVersion { get; set; } /// /// holds the version of the database, what we will be using /// int ConnectionDbVersion { get; set; } } }