klyn.data.EntityManager.repository
method

    public repository<T, TId>(
    mapping as MappingDescriptor<T, TId>
    ) as Repository<T, TId>:

Description

Returns a cached typed KQL query root using an explicit mapping.

Parameters

Parameter | Description
--- | ---
`<T>` | Entity type.
`<TId>` | Effective identity type.
`mapping` | Exact provider mapping.

Returns

Manager-owned query repository.

Throws

- EntityMappingException when `mapping` is null.

Example

    users = manager.repository<User, Int>(userMapping)