Enum ContainerChildIdStrategy
Namespace: EyeAuras.Shared.Model
Assembly: EyeAuras.Shared.dll
Syntax
public enum ContainerChildIdStrategy
Fields
Name | Description |
---|---|
IndependentChildren | Indicates that the container is not required to have an ID, and children within this container are assigned unique, globally identifiable IDs that are not linked to the container's ID. This strategy allows for greater flexibility, as children can be moved between containers without affecting their IDs. It's suitable for scenarios where parent-child linkage is not critical, or where children entities need to maintain identity independent of their container. |
LinkedToContainer | Indicates that a valid ID is required for the container when adding any new child. The IDs of children added to this container are constructed as extensions of the container's ID, using an OS path-like approach. This effectively creates a hierarchical linkage between the container and its children, allowing for retrieval of children based on the container's path. Note that this implies a permanent association between a child and its parent container, as moving the child to a different container would disrupt the ID structure. |