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; } }
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; } }