Beispiel #1
0
        public int Obrisi(IDomenskiObjekat ido)
        {
            string     upit    = $"delete from {ido.NazivTabele()} where {ido.VratiUslovZaBrisanje()}";
            SqlCommand komanda = new SqlCommand(upit, konekcija, transakcija);

            try
            {
                return(komanda.ExecuteNonQuery());
            }
            catch (Exception)
            {
                throw new Exception("Greška!");
            }
        }