예제 #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
     }
 }
예제 #2
0
 public AdresseRepository(DAB4.Modeller.Context.DBContext context) : base(context)
 {
     _context = context;
 }
예제 #3
0
 public MinismartgridRepository(DAB4.Modeller.Context.DBContext context) : base(context)
 {
     _context = context;
 }
예제 #4
0
 public EnergilagerRepository(DAB4.Modeller.Context.DBContext context) : base(context)
 {
     _context = context;
 }
예제 #5
0
 public UnitOfWork(DAB4.Modeller.Context.DBContext context)
 {
     _context = context;
 }
예제 #6
0
 //Delete this default constructor if using an IoC container
 public UnitOfWork()
 {
     _context = new DAB4.Modeller.Context.DBContext();
 }
예제 #7
0
 protected Repository(DAB4.Modeller.Context.DBContext context)
 {
     _entities = context.Set <TEntity>();
 }
예제 #8
0
 public TransaktionRepository(DAB4.Modeller.Context.DBContext context) : base(context)
 {
     _context = context;
 }
예제 #9
0
 public ProsumerRepository(DAB4.Modeller.Context.DBContext context) : base(context)
 {
     _context = context;
 }
예제 #10
0
 public ForventetdataRepository(DAB4.Modeller.Context.DBContext context) : base(context)
 {
     _context = context;
 }