/// <summary> /// ���캯�� /// </summary> public STreeFunctionBB() { this.selfConn = true; this.connection = new SqlConnection(HS.Config.SqlDataObject.GetSqlConnectionString); this.connection.Open(); this.treeFunctionDB = new STreeFunctionDB(this.connection); }
/// <summary> /// ���캯�� /// </summary> /// <param name="connection">��������</param> public STreeFunctionBB(SqlConnection connection) { this.connection = connection; this.treeFunctionDB = new STreeFunctionDB(connection); }
protected virtual void Dispose(bool disposing) { if (!disposing) return; if (this.selfConn) { this.connection.Close(); this.connection.Dispose(); this.connection = null; } if (this.treeFunctionDB != null) { this.treeFunctionDB.Dispose(); this.treeFunctionDB = null; } }