// ------------------------------------------ // MUTATORS // ------------------------------------------ #region Mutators /// <summary> /// Updates the connection string with the specified string. /// </summary> /// <param name="connectionString">The connection string to consider.</param> public override IBdoConnector WithConnectionString(string connectionString = null) { base.WithConnectionString(connectionString); DictionaryDataItem item = ItemFactory.CreateDictionary(connectionString); Provider = item.GetContent("Provider").Trim().ToLower(); DatabaseConnectorKind = EstimateDbConnectorKind(); ServerAddress = item.GetContent("Data Source"); InitialCatalog = item.GetContent("Initial Catalog"); UserName = item.GetContent("User Id"); Password = item.GetContent("Password"); return(this); }