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); }
public DataShoppingBascketAccessor(CommonDbContext _ShopDbContext, IDistributedCache _DistributedCache) : base(_ShopDbContext, _DistributedCache) { }
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; }
/// <summary> /// コンストラクタ /// </summary> public NotebookHistoryRepository(CommonDbContext context, Microsoft.AspNetCore.Http.IHttpContextAccessor accessor) : base(context, accessor) { }
public AquariumDataSetRepository(CommonDbContext context, IHttpContextAccessor accessor) : base(context, accessor) { }
public StoreMapInfoAccessor(CommonDbContext _ShopDbContext, Microsoft.Extensions.Caching.Distributed.IDistributedCache _DistributedCache) : base(_ShopDbContext, _DistributedCache) { }
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; }
public ExperimentRepository(CommonDbContext context, IHttpContextAccessor accessor) : base(context, accessor) { }
public MySqlStudentDataManager() { _dbContext = new CommonDbContext(); }
/* * 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; }