Function: many()
many<
T
>(target
:string
|Newable
<T
> |EntityModel
<T
,any
>,options
?:ManyOptions
<T
>):Property
<T
[]>
Adds a collection navigation property to the entity and allows for configuration of the property.
Type parameters
Type parameter |
---|
T extends object |
Parameters
Parameter | Type | Description |
---|---|---|
target | string | Newable <T > | EntityModel <T , any > | The target entity class or name. |
options ? | ManyOptions <T > | The options for the collection navigation property. |
Returns
Property
<T
[]>