Skip to main content
Version: Next

Class: EntityAssigner

core.EntityAssigner

Constructors#

constructor#

new EntityAssigner()

Methods#

assign#

Static assign<T>(entity, data, options?): T

Type parameters#

NameType
TT: AnyEntity<T>

Parameters#

NameType
entityT
dataEntityData<T> | Partial<EntityDTO<T>>
options?AssignOptions

Returns#

T

Defined in#

packages/core/src/entity/EntityAssigner.ts:15

Static assign<T>(entity, data, onlyProperties?): T

Type parameters#

NameType
TT: AnyEntity<T>

Parameters#

NameType
entityT
dataEntityData<T> | Partial<EntityDTO<T>>
onlyProperties?boolean

Returns#

T

Defined in#

packages/core/src/entity/EntityAssigner.ts:16