A Sandcastle Documented Class Library

# IRaggedHierarchyService GenerateHierarchy Method (Guid, Guid, IList String , PersistencePolicy)

Generates the hierarchy based on a single entity.

Namespace: Dundas.BI.Entities.UserHierarchies
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    RaggedHierarchy GenerateHierarchy(
    	Guid parentId,
    	Guid entityId,
    	IList<string> defaultColumns,
    	PersistencePolicy persistencePolicy
    )

    Function GenerateHierarchy (
    	parentId As Guid,
    	entityId As Guid,
    	defaultColumns As IList(Of String),
    	persistencePolicy As PersistencePolicy
    ) As RaggedHierarchy

    RaggedHierarchy^ GenerateHierarchy(
    	Guid parentId,
    	Guid entityId,
    	IList<String^>^ defaultColumns,
    	PersistencePolicy persistencePolicy
    )

    abstract GenerateHierarchy :
            parentId : Guid *
            entityId : Guid *
            defaultColumns : IList<string> *
            persistencePolicy : PersistencePolicy -> RaggedHierarchy

#### Parameters

parentId
  Type: System
  Guid
  The ID of the parent file or folder.
entityId
  Type: System
  Guid
  ID of the data source entity.
defaultColumns
  Type: System.Collections.Generic
  IList
  String
  The default column names. The column names serve as a "hint" on how to generate the hierarchy.
persistencePolicy
  Type: Dundas.BI.Entities
  PersistencePolicy
  A value indicating whether the entity should be created as persistent or transient.

#### Return Value

Type: RaggedHierarchy
The generated hierarchy.
Exceptions

Exception | Condition
--- | ---
ArgumentException | parentId or entityId was Empty.
NotSupportedException | The data structure with the specified ID cannot be used as a data source for the user hierarchy.
NotFoundException | The data structure with the specified ID doesn't exist or cannot be discovered.
InvalidSessionException | The caller context is not associated with a valid session.
NoPrivilegeException | Caller does not have access to the specified entity.
DataProviderLoadException | The data provider may throw this exception if it requires third party driver to be installed.
DataConnectionException | The connection cannot be established.
NoPrivilegeException | The caller does not have access to save in the specified location.

Remarks
The table is analyzed based on relationships with other tables and column cardinality and correlations.
See Also

#### Reference

IRaggedHierarchyService Interface
GenerateHierarchy Overload
Dundas.BI.Entities.UserHierarchies Namespace