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