/// <summary> /// Returns an <see cref="IDataGetter{TEntity}"/> for getting that entity in not cached context. /// Once entity will be getted - it also will be cached for global and current cache levels (or cache levels will be updated, if they already contains requested entities). /// </summary> public IDataGetter <TEntity> GetNotCached <TEntity>() where TEntity : class, new() { return(_factory.NotCachedGetterFor <TEntity>()); }
/// <summary> /// Instantinate an <see cref="IDataGetter{TEntity}"/>, that will be used in not cached context. /// This method will be called on each request of any not cached entity. /// </summary> public IDataGetter <TEntity> NotCachedGetterFor <TEntity>() where TEntity : class, new() { return(new LazyDataGetter <TEntity>(_factory.NotCachedGetterFor <TEntity>(), this)); }