Skip to main content
Version: Next

Class: ChangeSet<T>

core.ChangeSet

Type parameters#

NameType
TT: AnyEntity<T>

Constructors#

constructor#

new ChangeSet<T>(entity, type, payload, meta)

Type parameters#

NameType
TT: AnyEntity<T>

Parameters#

NameType
entityT
typeChangeSetType
payloadEntityDictionary<T>
metaEntityMetadata<T>

Defined in#

packages/core/src/unit-of-work/ChangeSet.ts:5

Properties#

collection#

collection: string

Defined in#

packages/core/src/unit-of-work/ChangeSet.ts:26


entity#

entity: T

Defined in#

packages/core/src/unit-of-work/ChangeSet.ts:28


name#

name: string

Defined in#

packages/core/src/unit-of-work/ChangeSet.ts:24


originalEntity#

Optional originalEntity: EntityData<T>

Defined in#

packages/core/src/unit-of-work/ChangeSet.ts:31


payload#

payload: EntityDictionary<T>

Defined in#

packages/core/src/unit-of-work/ChangeSet.ts:29


persisted#

persisted: boolean

Defined in#

packages/core/src/unit-of-work/ChangeSet.ts:30


rootName#

rootName: string

Defined in#

packages/core/src/unit-of-work/ChangeSet.ts:25


type#

type: ChangeSetType

Defined in#

packages/core/src/unit-of-work/ChangeSet.ts:27

Methods#

getPrimaryKey#

getPrimaryKey(): null | Primary<T> | Primary<T>[]

Returns#

null | Primary<T> | Primary<T>[]

Defined in#

packages/core/src/unit-of-work/ChangeSet.ts:16