Browse Source

Should use Repository's GetAsync for GetAsync

pull/14055/head
Halil İbrahim Kalkan 4 years ago
parent
commit
3c4e90d8b2
  1. 2
      framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Caching/EntityCacheBase.cs

2
framework/src/Volo.Abp.Ddd.Domain/Volo/Abp/Domain/Entities/Caching/EntityCacheBase.cs

@ -32,7 +32,7 @@ public abstract class EntityCacheBase<TEntity, TEntityCacheItem, TKey> :
{
return await Cache.GetOrAddAsync(
id,
async () => MapToCacheItem(await Repository.FindAsync(id))
async () => MapToCacheItem(await Repository.GetAsync(id))
);
}

Loading…
Cancel
Save