예제 #1
0
        public static long GetVersionNumber(CommonDbContext context)
        {
            var version = context.ObjContext().ExecuteStoreQuery <long>("select top(1) Version from VersionInfo  order by version desc").FirstOrDefault();

            return(version);
        }
예제 #2
0
 public DataShoppingBascketAccessor(CommonDbContext _ShopDbContext, IDistributedCache _DistributedCache) : base(_ShopDbContext, _DistributedCache)
 {
 }
예제 #3
0
 public AttachmentService(IAttachmentRepository repository, IAttachmentOwnerRepository ownerRepository, IOptionsMonitor <ModuleCommonOptions> moduleCommonOptionsMonitor, IMediaTypeRepository mediaTypeRepository, IMapper mapper, CommonDbContext dbContext)
 {
     _repository          = repository;
     _ownerRepository     = ownerRepository;
     _moduleCommonOptions = moduleCommonOptionsMonitor.CurrentValue;
     _mediaTypeRepository = mediaTypeRepository;
     _mapper    = mapper;
     _dbContext = dbContext;
 }
예제 #4
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public NotebookHistoryRepository(CommonDbContext context, Microsoft.AspNetCore.Http.IHttpContextAccessor accessor)
     : base(context, accessor)
 {
 }
 public AquariumDataSetRepository(CommonDbContext context, IHttpContextAccessor accessor)
     : base(context, accessor)
 {
 }
예제 #6
0
 public StoreMapInfoAccessor(CommonDbContext _ShopDbContext,
                             Microsoft.Extensions.Caching.Distributed.IDistributedCache _DistributedCache)
     : base(_ShopDbContext, _DistributedCache)
 {
 }
예제 #7
0
 public DataContentEntryAccessor(CommonDbContext _ShopDbContext, IDistributedCache _DistributedCache) : base(_ShopDbContext, _DistributedCache)
 {
 }
 public AreaService(IMapper mapper, IAreaRepository repository, ICacheHandler cache, CommonDbContext dbContext)
 {
     _mapper     = mapper;
     _repository = repository;
     _cache      = cache;
     _dbContext  = dbContext;
 }
 public OperacoesCaixaEletronicoDAO(CommonDbContext commonDbContext, ICaixaEletronicoDAO caixaEletronicoDAO)
 {
     this._commonDbContext    = commonDbContext;
     this._caixaEletronicoDAO = caixaEletronicoDAO;
 }
 public CaixaEletronicoDAO(CommonDbContext commonDbContext)
 {
     this._commonDbContext = commonDbContext;
 }
예제 #11
0
 public ExperimentRepository(CommonDbContext context, IHttpContextAccessor accessor)
     : base(context, accessor)
 {
 }
예제 #12
0
 public MySqlStudentDataManager()
 {
     _dbContext = new CommonDbContext();
 }
예제 #13
0
 /*
  * HINT:
  * 1) Look at the return types of each endpoint.
  * This will show what the endpoint should return. e.g. in the GetOilBetweenDates method, look at the OilBetweenDates class.
  * 2) Use the GetProductionDataBetweenDates helper method at the bottom.
  * 3) Use LINQ to create SQL queries.
  */
 public AggregatesController(CommonDbContext context)
 {
     _context = context;
 }