Beispiel #1
0
 private void Update(Source model)
 {
     using (var db = new SQLite.SQLiteConnection(Settings.DatabasePath))
     {
         db.Update(model);
     }
 }
Beispiel #2
0
 public void Save(Source model)
 {
     if (model.Id == 0)
     {
         Insert(model);
     }
     else
     {
         Update(model);
     }
 }
Beispiel #3
0
 public SourceViewModel(Source source)
     : this()
 {
     Id = source.Id;
     Name = source.Name;
 }