Class DeviceProps

Assembly: redb.Examples.dll

Device with every V4 key shape beyond the plain scalar one (E004):

a key on a scalar INSIDE a nested class ();
a key on a whole SUBTREE - the content of a nested class or a collection is the key;
ELEMENT keys on collections, scoped to one collection or to the whole scheme;
a free-form [RedbTags] marker on the scheme and on a structure.

[RedbTags("examples,e004")]
public class DeviceProps

Inheritance

Object→DeviceProps

Properties

Config

Subtree key: two devices cannot carry the same configuration content.

public DeviceConfig? Config { get; set; }

Identity

Nested class whose Serial is a key: unique per scheme, like a root key.

public DeviceIdentity? Identity { get; set; }

Labels

Element keys, Collection scope: no duplicate label inside ONE device.

public List<string>? Labels { get; set; }

MacAddresses

Element keys, Scheme scope: a MAC address belongs to one device in the whole scheme.

[RedbTags("network")]
public List<string>? MacAddresses { get; set; }

Ports

Subtree key on a collection: the ordered list of ports is the key.

public List<long>? Ports { get; set; }

Title

public string? Title { get; set; }