예제 #1
0
 public void UpdateBackground(List<BackgroundModel> source)
 {
     foreach (var item in source)
     {
         BackgroundTable table = new BackgroundTable(item.Title, item.Name, item.Img, item.IsSel, item.Ext);
         DatabaseManager.Current.Update(table);
     }
 }
예제 #2
0
        internal int AddBackgroundEntry(BackgroundTable Entry)
        {
            sqlConnection.Insert(Entry);

            return Entry.BackgroundId;
        }