コード例 #1
0
 public void UpdateProfile(BrewProfile profile)
 {
     BrewDatabaseTable entry = _entries.FirstOrDefault(t => t.ProfileId == profile.Id.ToString());
     if (entry != null)
     {
         entry.Profile = ProfileWriter.Write(profile);
         _conn.Update(entry);
     }
 }
コード例 #2
0
 public bool ProfileExists(BrewProfile profile)
 {
     BrewDatabaseTable entry = _entries.FirstOrDefault(t => t.ProfileId == profile.Id.ToString());
     return entry != null;
 }
コード例 #3
0
 public void DeleteProfile(BrewProfile profile)
 {
     BrewDatabaseTable entry = _entries.FirstOrDefault(t => t.ProfileId == profile.Id.ToString());
     if(entry != null)
         _conn.Delete(entry);
 }