Fix restriction template type TEntity to IRepository

I mean need add a restriction for template type as class to IRepository.
Because EFRepository have it and registration mapping in container isn't
correct.