/// <summary> /// removes SqlConnection object from the collection /// </summary> /// <param name="_connection"></param> public virtual void Remove(SQLConnection _connection) { if (this[_connection.Server] != null) { this.List.Remove(_connection); } }
/// <summary> /// get the int index value of the server connection object /// </summary> /// <param name="_connection"></param> /// <returns></returns> public virtual int getIndex(SQLConnection _connection) { return this.List.IndexOf(_connection); }
/// <summary> /// adds a new SqlConnection object to the SqlConnections class. /// </summary> /// <param name="_connection"></param> /// <returns></returns> public virtual int Add(SQLConnection _connection) { return (this[_connection.Server] == null) ? this.List.Add(_connection) : getIndex(_connection); }