public async Task <TEntity> GetByIdAsync(TId id, params Expression <Func <TEntity, object> >[] includes) { if (_entityWithIncludesProvider == null) { throw new NullReferenceException("Entity provider with includes is null. Make sure it is injected in constructor."); } return(await _entityWithIncludesProvider.GetByIdAsync(id, includes)); }
public virtual async Task <TEntity> GetByIdAsync(TId id, Expression <Func <TEntity, object> >[] includes) { return(await _entityWithIncludesByIdProvider.GetByIdAsync(id, includes)); }