Class DependencyPackage
Represents the cross-dependencies map between a set of repository entities.
Inheritance
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services.Export
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class DependencyPackage
Constructors
DependencyPackage()
Declaration
public DependencyPackage()
Properties
AlertHandlerTypes
Gets collection of registered alert handler types.
Declaration
public Collection<Subtree> AlertHandlerTypes { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.Collection<Subtree> |
AlertTypes
Gets collection of alert types.
Declaration
public Collection<Subtree> AlertTypes { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.Collection<Subtree> |
CustomAttributeTypes
Gets collection of custom attribute types.
Declaration
public Collection<Subtree> CustomAttributeTypes { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.Collection<Subtree> |
Dependencies
Gets collection of cross-dependencies between entities included in the package. Dependencies on a parent folder must not be included in this collection.
Declaration
public Collection<Dependency> Dependencies { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.Collection<Dependency> |
Products
Gets collection of products.
Declaration
public Collection<Subtree> Products { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.Collection<Subtree> |
Repository
Gets folder tree populated with entities which dependencies are tracked.
Declaration
public FolderSubtree Repository { get; }
Property Value
Type | Description |
---|---|
FolderSubtree |
RouterTypes
Gets collection of registered router types.
Declaration
public Collection<Subtree> RouterTypes { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.Collection<Subtree> |
Methods
AddDependency(EntityReference)
Adds new declarative dependency to dependencies collection.
Declaration
public void AddDependency(EntityReference reference)
Parameters
Type | Name | Description |
---|---|---|
EntityReference | reference | Entity reference to create dependency from. |
AddDependency(Int32, EntityType, Int32, EntityType)
Adds new natural dependency to dependencies collection. Dependency on the parent folder must not be added explicitly.
Declaration
public void AddDependency(int foreignEntityId, EntityType foreignEntityType, int primaryEntityId, EntityType primaryEntityType)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | foreignEntityId | Database identifier of the entity that is dependent on or references another entity. |
EntityType | foreignEntityType | The type of entity that is dependent on or references another entity. |
System.Int32 | primaryEntityId | Database identifier of the entity that is a dependency for or referenced by another entity. |
EntityType | primaryEntityType | The type of entity that is a dependency for or referenced by another entity. |
GetIdentifiers()
Returns all entity identifiers stored in the package.
Declaration
public Collection<LocalIdentifier> GetIdentifiers()
Returns
Type | Description |
---|---|
System.Collections.ObjectModel.Collection<LocalIdentifier> | Collection of all entity identifiers stored in the package. |