Beispiel #1
0
        private void btnOpslaan_Click(object sender, RoutedEventArgs e)
        {
            product product = new product();

            product.productNaam = txtNaam.Text;
            product.prijs       = Decimal.Parse(txtPrijs.Text);

            productType type = new productType();

            type.omschrijving = txtType.Text;

            db.products.InsertOnSubmit(product);
            db.productTypes.InsertOnSubmit(type);
            db.SubmitChanges();

            dgProducten.ItemsSource = db.products.ToList();
        }
Beispiel #2
0
 partial void UpdateproductType(productType instance);
Beispiel #3
0
 partial void DeleteproductType(productType instance);
Beispiel #4
0
 partial void InsertproductType(productType instance);