Data/CafeLib.Data/Persistence/EntityRegistry.cs
/// <summary>
/// Return the repository for the type.
/// </summary>
/// <typeparam name="T">entity type</typeparam>
/// <returns>the repository or null</returns>
Return the repository for the type.
Return the repository for the type .
public IRepository<T> Find<T>() where T : class, IEntity
        {
            return _container.TryResolve(typeof(IRepository<T>), out var repository)
                ? (IRepository<T>) repository
                : throw new KeyNotFoundException(typeof(T).Name);
        }
public IRepository < T > Find < T > ( ) where T : class , IEntity { return _container . TryResolve ( typeof ( IRepository < T > ) , out var repository ) ? ( IRepository < T > ) repository : throw new KeyNotFoundException ( typeof ( T ) . Name ) ; }
Return the repository for the type.
Return the repository for the type .
the repository or null
the repository or null
typeparam
None