EntityId class
A unique identifier for an entity, consisting of entity class and entity key.
Constructors
Entity |
Create an entity id for an entity. |
Properties
key | The entity key. Uniquely identifies an entity among all instances of the same class. |
name | The name of the entity class |
Methods
to |
Constructor Details
EntityId(string, string)
Create an entity id for an entity.
new EntityId(name: string, key: string)
Parameters
- name
-
string
The name of the entity class.
- key
-
string
The entity key. Uniquely identifies an entity among all instances of the same class.
Property Details
key
The entity key. Uniquely identifies an entity among all instances of the same class.
key: string
Property Value
string
name
The name of the entity class
name: string
Property Value
string
Method Details
toString()
function toString(): string
Returns
string