Beispiel #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
     }
 }
 public SysdiagramRepository(TarieEntities context) : base(context)
 {
     _context = context;
 }
Beispiel #3
0
 public AgentRepository(TarieEntities context) : base(context)
 {
     _context = context;
 }
Beispiel #4
0
 public Class1Repository(TarieEntities context) : base(context)
 {
     _context = context;
 }
Beispiel #5
0
 protected Repository(TarieEntities context)
 {
     _entities = context.Set <TEntity>();
 }
Beispiel #6
0
 public ImageRepository(TarieEntities context) : base(context)
 {
     _context = context;
 }
Beispiel #7
0
 public UnitOfWork(TarieEntities context)
 {
     _context = context;
 }
Beispiel #8
0
 //Delete this default constructor if using an IoC container
 public UnitOfWork()
 {
     _context = new TarieEntities();
 }