Exemplo n.º 1
0
 public Repository()
 {
     context = new EFDbContext();
     //usuniecie nieaktywnych serwisow
     KillZombieServices();
 }
Exemplo n.º 2
0
 /**
 * Zaktualizowanie czasu ostatniej komunikacji z serwisem
 **/
 public void UpdateService(Service serv)
 {
     using (var dbCtx = new EFDbContext())
     {
         dbCtx.Entry(serv).State = EntityState.Modified;
         dbCtx.SaveChanges();
     }
 }
Exemplo n.º 3
0
 public Repository()
 {
     context = new EFDbContext();
     //usuniecie nieaktywnych serwisow
     KillZombieServices();
 }