public ActionResult Add(CredentialsConfig credentialsConfig) { if (ModelState.IsValid) { SocialAllianceConfig.CreateOrUpdateCredentials(credentialsConfig); } var config = SocialAllianceConfig.Read(); var credentials = config.Authorization.Credentials; return PartialView("_CredentialsListPartial", credentials); }
internal static ConnectionResultSet TestConnection(CredentialsConfig creds, string database = null) { return(TestConnection(new sqlservers(creds), database)); }
internal static DbConnection connect(CredentialsConfig creds, string database = null) { return(connect(new sqlservers(creds), database)); }
public static string connectionStringBuilder(CredentialsConfig creds, string database = null) => connectionStringBuilder(creds.host, creds.username, creds.password, database, creds.port);
public sqlservers(CredentialsConfig creds) : this(creds.host, creds.port, creds.username, creds.password) { }