Condividi tramite


EntityId class

Identificatore univoco per un'entità costituita da classe di entità e chiave di entità.

Costruttori

EntityId(string, string)

Creare un ID entità per un'entità.

Proprietà

key

Chiave di entità. Identifica in modo univoco un'entità tra tutte le istanze della stessa classe.

name

Nome della classe di entità

Metodi

toString()

Dettagli costruttore

EntityId(string, string)

Creare un ID entità per un'entità.

new EntityId(name: string, key: string)

Parametri

name

string

Nome della classe di entità.

key

string

Chiave di entità. Identifica in modo univoco un'entità tra tutte le istanze della stessa classe.

Dettagli proprietà

key

Chiave di entità. Identifica in modo univoco un'entità tra tutte le istanze della stessa classe.

key: string

Valore della proprietà

string

name

Nome della classe di entità

name: string

Valore della proprietà

string

Dettagli metodo

toString()

function toString(): string

Restituisce

string