protected virtual void Dispose(bool disposing) { if (disposing) { if (_context != null) { _context.Dispose(); _context = null; } } }
public AdresseRepository(DAB4.Modeller.Context.DBContext context) : base(context) { _context = context; }
public MinismartgridRepository(DAB4.Modeller.Context.DBContext context) : base(context) { _context = context; }
public EnergilagerRepository(DAB4.Modeller.Context.DBContext context) : base(context) { _context = context; }
public UnitOfWork(DAB4.Modeller.Context.DBContext context) { _context = context; }
//Delete this default constructor if using an IoC container public UnitOfWork() { _context = new DAB4.Modeller.Context.DBContext(); }
protected Repository(DAB4.Modeller.Context.DBContext context) { _entities = context.Set <TEntity>(); }
public TransaktionRepository(DAB4.Modeller.Context.DBContext context) : base(context) { _context = context; }
public ProsumerRepository(DAB4.Modeller.Context.DBContext context) : base(context) { _context = context; }
public ForventetdataRepository(DAB4.Modeller.Context.DBContext context) : base(context) { _context = context; }