コード例 #1
0
 private void NaarDBButton_Click(object sender, RoutedEventArgs e)
 {
     this.Dispatcher.Invoke(() =>
     {
         Bewerk(ConvertToBusinesslaag.convertToStrips(stripsFromDB)); //voer uit, schijf strips weg naar db
     });
 }
コード例 #2
0
 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)));
     }
 }