public User(string username, string password, ConnectionProfile profile) { this.Username = username; this.Password = password; this.ConnectionProfile = profile; if (profile.ConnectionType == ConnectionType.SQLServer) { ConnectionProvider = new SQLServerConnectionProvider(); } else if (profile.ConnectionType == ConnectionType.Standalone) { ConnectionProvider = new SQLiteConnectionProvider(profile, username, password); } }