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