public UnitOfWork(OutageContext context)
        {
            this.context = context;

            OutageRepository              = new OutageRepository(context);
            ConsumerRepository            = new ConsumerRepository(context);
            EquipmentRepository           = new EquipmentRepository(context);
            ConsumerHistoricalRepository  = new ConsumerHistoricalRepository(context);
            EquipmentHistoricalRepository = new EquipmentHistoricalRepository(context);
        }
        public UnitOfWork()
        {
            context = new OutageContext();

            OutageRepository              = new OutageRepository(context);
            ConsumerRepository            = new ConsumerRepository(context);
            EquipmentRepository           = new EquipmentRepository(context);
            ConsumerHistoricalRepository  = new ConsumerHistoricalRepository(context);
            EquipmentHistoricalRepository = new EquipmentHistoricalRepository(context);
        }
 public TotalReport()
 {
     _context          = new OutageContext();
     _outageRepository = new OutageRepository(_context);
 }
 public OutageRepository(OutageContext context)
     : base(context)
 {
 }
 public SaifiReport()
 {
     _context            = new OutageContext();
     _outageRepository   = new ConsumerHistoricalRepository(_context);
     _consumerRepository = new ConsumerRepository(_context);
 }
 public Repository(OutageContext context)
 {
     this.context = context;
 }
Exemple #7
0
 public EquipmentHistoricalRepository(OutageContext context)
     : base(context)
 {
 }
Exemple #8
0
 public EquipmentRepository(OutageContext context)
     : base(context)
 {
 }
 public ConsumerRepository(OutageContext context)
     : base(context)
 {
 }
 public ConsumerHistoricalRepository(OutageContext context)
     : base(context)
 {
 }