29 lines
808 B
C#
29 lines
808 B
C#
using Mango.Nop.Core.Interfaces;
|
|
using Microsoft.AspNetCore.Http;
|
|
using Nop.Core.Caching;
|
|
using Nop.Core.Domain.Catalog;
|
|
using Nop.Core.Events;
|
|
using Nop.Data;
|
|
using Nop.Services.Events;
|
|
using Nop.Services.Logging;
|
|
|
|
namespace Mango.Nop.Core.Repositories;
|
|
|
|
|
|
public class MgDbContextBase : IMgDbContextBase
|
|
{
|
|
//TODO: ez itt nem ay igazi, kitalálni vmit! - J.
|
|
private readonly CacheKey _auctionAllKey = new("Nop.auction.all-{0}", AUCTION_PATTERN_KEY);
|
|
public const string AUCTION_PATTERN_KEY = "Nop.auction.";
|
|
|
|
|
|
protected ILogger Logger;
|
|
protected INopDataProvider DataProvider;
|
|
//protected IHttpContextAccessor HttpContextAccessor;
|
|
|
|
public MgDbContextBase(INopDataProvider dataProvider, ILogger logger)
|
|
{
|
|
Logger = logger;
|
|
DataProvider = dataProvider;
|
|
}
|
|
} |