Showing posts with label SQL. Show all posts
Showing posts with label SQL. Show all posts

Friday, December 12, 2008

sample code post - DB Broker

public int ObrisiSveZaUslov(IGhost ighost)
{
string upit = "DELETE *" +
" FROM " + ighost.ImeObjekta +
" WHERE " + ighost.UslovZaNalazenjeSlogova;

var komanda = new OleDbCommand(upit, konekcija, transakcija);

try
{
return komanda.ExecuteNonQuery();
}
catch (Exception)
{
throw new Exception("Greska u radu sa bazom! Brisanje po uslovu");
}
}
пример методе DBBroker-a.
http://feeds.feedburner.com/alisteroz