예제 #1
0
 public void AddPrayer(Prayer prayer)
 {
     using (var database = new VersesSQLiteConnection(Path))
     {
         database.AddPrayer(prayer);
     }
 }
예제 #2
0
 public bool UpdatePrayer(Prayer prayer)
 {
     using (var database = new VersesSQLiteConnection(Path))
     {
         if (database.PrayerExists(prayer.Id))
         {
             database.UpdatePrayer(prayer);
             return(true);
         }
         return(false);
     }
 }
예제 #3
0
 public void UpdatePrayer(Prayer p)
 {
     Update(p);
 }
예제 #4
0
 public void RemovePrayer(Prayer p)
 {
     Delete <Prayer> (p.Id);
 }
예제 #5
0
 public void AddPrayer(Prayer p)
 {
     Insert(p);
 }