public void EditUserLocation(cangooru_Location location)
 {
     if (location.EntityState == EntityState.Detached)
         _entities.cangooru_Location.Attach(location);
     _entities.ObjectStateManager.ChangeObjectState(location, System.Data.EntityState.Modified);
     _entities.SaveChanges();
 }
Exemplo n.º 2
0
 public void EditUserLocation(cangooru_Location location)
 {
     if (location.EntityState == EntityState.Detached)
     {
         _entities.cangooru_Location.Attach(location);
     }
     _entities.ObjectStateManager.ChangeObjectState(location, System.Data.EntityState.Modified);
     _entities.SaveChanges();
 }
Exemplo n.º 3
0
 public void AddUserLocation(cangooru_Location location)
 {
     _entities.AddTocangooru_Location(location);
     _entities.SaveChanges();
 }
 public void AddUserLocation(cangooru_Location location)
 {
     _entities.AddTocangooru_Location(location);
     _entities.SaveChanges();
 }