コード例 #1
0
        protected QueryAsync(TContext context, ICacheRepository cacheService)
        {
            ThrowErrorIf.
            HasNoCache(cacheService, typeof(QueryAsync <,>).Name);

            ThrowErrorIf.
            IsNullValue(context, nameof(context), typeof(QueryAsync <,>).Name);

            Context      = context;
            CacheService = cacheService;
            Query        = Context.Set <TValue>().AsQueryable();
        }