S
shapper
Hello,
Is there a difference of performance in getting assetsPage between:
IQueryable<Asset> assetsPage = context.Assets.Skip(2).Take
(20).AsQueryable();
and:
IQueryable<Asset> allAssets = context.Assets;
IQueryable<Asset> assetsPage = assetsB.Skip(2).Take(20);
I am asking this because on my Repository I already have a method to
get all assets so I could reuse it my service:
assetsPage = assetRepository.GetAll().Skip(2).Take(20);
Instead of creating another method in the repository.
I am just wondering.
Thanks,
Miguel
Is there a difference of performance in getting assetsPage between:
IQueryable<Asset> assetsPage = context.Assets.Skip(2).Take
(20).AsQueryable();
and:
IQueryable<Asset> allAssets = context.Assets;
IQueryable<Asset> assetsPage = assetsB.Skip(2).Take(20);
I am asking this because on my Repository I already have a method to
get all assets so I could reuse it my service:
assetsPage = assetRepository.GetAll().Skip(2).Take(20);
Instead of creating another method in the repository.
I am just wondering.
Thanks,
Miguel