私はクラスGenericRepositoryにこのメソッドを持っています:
public virtual IEnumerable<TEntity> Get(
Expression<Func<TEntity, bool>> filter = null,
Func<IQueryable<TEntity>, IOrderedQueryable<TEntity>> orderBy = null,
string includeProperties = "") {...}
そして、サービスレイヤーで私は持っています:
IAdsRepository _adsRepository;
public AdsService(IAdsRepository adsRepository)
{
_adsRepository= adsRepository;
}
public IEnumerable<Ads> GetAllAds(....)
{
return _adsRepository.GetAll(....);
}
(genericRepositoryを指定するリポジトリがあります)
誰かがパラメータがメソッドGet()にどのように渡されるかについての考えを持っていますか?
どうもありがとうございます、