SqlUpdate() public method

public SqlUpdate ( ) : bool
return bool
Esempio n. 1
0
 // This adds an agenda item or updates an existing one
 public bool AddOrUpdateItem(AgendaItem i)
 {
     if(i.id <= 0)
         return i.SqlInsert();
     else
         return i.SqlUpdate();
 }
Esempio n. 2
0
 // This adds an agenda item or updates an existing one
 public bool AddOrUpdateItem(AgendaItem i)
 {
     if (i.id <= 0)
     {
         return(i.SqlInsert());
     }
     else
     {
         return(i.SqlUpdate());
     }
 }