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