klyn.data.sql.SQLRepository.SQLRepository
constructor

    public SQLRepository(
    configuration as SQLConfiguration,
    mapping as SQLMapping<T, TId>,
    session as SQLProviderSession,
    tracker as SQLIdentityTracker
    ):

Description

Creates a repository borrowing one EntityManager SQL session.

Parameters

Parameter | Description
--- | ---
`configuration` | SQL provider configuration.
`mapping` | Validated entity mapping.
`session` | Owning manager session.

Example

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