public void Add(string edsSqlSchemaVersion, string connectionString)
            {
                List <string> edsEndpointObject = this.GetEdsEndpointObject();

                if (edsEndpointObject != null)
                {
                    List <string> list = new List <string>(edsEndpointObject);
                    string        item = ManageEdsConnectionStrings.GenerateConnectionString(edsSqlSchemaVersion, connectionString);
                    list.Add(item);
                    this.SetEdsEndpointObject(list);
                    return;
                }
                throw new ApplicationException("The EDS endpoint object does not exist.");
            }
            public void Add(string edsSqlSchemaVersion, string connectionString)
            {
                SearchResult edsEndpointObject = ManageEdsConnectionStrings.AdConnectionStrings.GetEdsEndpointObject();

                if (edsEndpointObject != null)
                {
                    string value = ManageEdsConnectionStrings.GenerateConnectionString(edsSqlSchemaVersion, connectionString);
                    using (DirectoryEntry directoryEntry = new DirectoryEntry(edsEndpointObject.Path))
                    {
                        directoryEntry.Properties["serviceBindingInformation"].Add(value);
                        directoryEntry.CommitChanges();
                        return;
                    }
                }
                throw new ApplicationException("The EDS endpoint object does not exist.");
            }