Entry
The entry of a brick is a static object linked to the brick class itself that is used to make the link between the code and the database. It stores tags linked to a specific brick :
- tag of the brick itself
- tags of properties that can be used as constants.
Deprecated
Extends
Methods
addProperty()
addProperty<T>(tag): Property<T>;
Register a property on the brick with the specified tag.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
tag | string |
Returns
Property<T>
the property descriptor
Deprecated
use defineProperty instead
addRelation()
addRelation(tag, direction): Related<any, any>;
Register a new relation type with the specified tag and direction
Parameters
| Parameter | Type | Description |
|---|---|---|
tag | string | |
direction | Direction |
Returns
Related<any, any>
Deprecated
use defineRelation instead
getTag()
getTag(): string;
Returns
string
tag of this instance