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
ParameterDescription
<T>Entity type.
<TId>Effective identity type.
mappingExact provider mapping.
Returns

Manager-owned query repository.

Throws
  • EntityMappingException when mapping is null.
Example
users = manager.repository<User, Int>(userMapping)