klyn.data.memory.MemoryConfiguration.resolve
method
public resolve<T, TId>() as Repository<T, TId>:
Description

Resolves one repository with its exact entity and identity types.

Parameters
ParameterDescription
<T>Entity type.
<TId>Effective identity type.
Returns

Exact typed memory repository.

Throws
  • EntityMappingException when no exact registration exists.
Example
users = configuration.resolve<User, Int>()