Esempio n. 1
0
 public AccountController(PyStudioDBContext context, IOptions <PySelfSetting> selfSetting, IHostingEnvironment hostingEnvironment, IMemoryCache cache)
 {
     _context            = context;
     _selfSetting        = selfSetting.Value;
     _hostingEnvironment = hostingEnvironment;
     _cache = cache;
 }
Esempio n. 2
0
 public CacheController(PyStudioDBContext context, IMemoryCache memoryCache, IHostingEnvironment hostingEnvironment, IOptions <PySelfSetting> pySelfSetting)
 {
     _cache              = memoryCache;
     _context            = context;
     _hostingEnvironment = hostingEnvironment;
     _pySelfSetting      = pySelfSetting.Value;
 }
Esempio n. 3
0
 public BaseInfoController(PyStudioDBContext context, IOptions <PySelfSetting> pySelfSetting, IMemoryCache cache, IHostingEnvironment hostingEnvironment)
 {
     _context            = context;
     _pySelfSetting      = pySelfSetting.Value;
     _cache              = cache;
     _repository         = new Repository <InfoArea>(_context);
     _repositoryEi       = new Repository <InfoEi>(_context);
     _hostingEnvironment = hostingEnvironment;
 }
Esempio n. 4
0
 public Repository(PyStudioDBContext context)
 {
     _context  = context;
     _Entities = context.Set <TEntity>();
 }
Esempio n. 5
0
 public PySqlHelper(PyStudioDBContext context)
 {
     _context = context;
 }
Esempio n. 6
0
 public AccountApiController(PyStudioDBContext context)
 {
     _context = context;
 }
Esempio n. 7
0
 public SmallAppController(PyStudioDBContext context)
 {
     _context    = context;
     _repository = new Repository <InfoMessageBoard>(_context);
 }
 public UserCenterApiController(PyStudioDBContext context, IOptions <PySelfSetting> pySelfSetting, IHostingEnvironment hostingEnvironment)
 {
     _context            = context;
     _pySelfSetting      = pySelfSetting.Value;
     _hostingEnvironment = hostingEnvironment;
 }