Exemplo n.º 1
0
 private void setVisibleAV(System.Data.Objects.ObjectContext dc, bool value, bool save)
 {
     try
     {
         dc.ExecuteStoreCommand("EXEC dbo.SetZasobyDoSprawdzenia {0},{1},{2}", this.TowarID, this.AtrybutTowaruID, value);
         dc.Refresh(RefreshMode.StoreWins, this);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 2
0
 private void setBlokada(System.Data.Objects.ObjectContext dc, bool value)
 {
     try
     {
         if (dc != null)
         {
             dc.ExecuteStoreCommand("EXEC dbo.SetZasobyBlokada {0},{1},{2}", this.TowarID, this.AtrybutTowaruID, value);
             dc.Refresh(RefreshMode.StoreWins, this);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }