Exemple #1
0
 public bool DeletarCupomPriSQL(CupomSec sql)
 {
     try
     {
         using (var conexao = new SQLiteConnection(System.IO.Path.Combine(pasta, "StfrenteAndroid.db")))
         {
             conexao.Delete(sql);
             return(true);
         }
     }
     catch (SQLiteException ex)
     {
         String exs = ex.ToString();
         return(false);
     }
 }
Exemple #2
0
 public bool InserirCupomPri(CupomSec SQLServ)
 {
     try
     {
         using (var conexao = new SQLiteConnection(System.IO.Path.Combine(pasta, "StfrenteAndroid.db")))
         {
             conexao.Insert(SQLServ);
             return(true);
         }
     }
     catch (SQLiteException ex)
     {
         String exs = ex.ToString();
         return(false);
     }
 }