예제 #1
0
 private void NaarDBButton_Click(object sender, RoutedEventArgs e)
 {
     this.Dispatcher.Invoke(() =>
     {
         Bewerk(ConvertToBusinesslaag.convertToStrips(stripsFromDB)); //voer uit, schijf strips weg naar db
     });
 }
 public IEnumerable <Strip> GetAll()
 {
     // DBAs across the country are having strokes
     //  over this next command!
     using (var command = new SqlCommand("SELECT * FROM Strip"))
     {
         return(ConvertToBusinesslaag.convertToStrips((List <StripDB>)GetRecords(command)));
     }
 }