Tietokannat
Käydään läpi perusteet tietokantojen käytöstä WPF-ohjelmissa datasetien, entity data modelin ja LINQ-kielen avulla.
Luentoesimerkki (tietokannat.zip
- Luentovideo (Youtube)
- tjlahton2012-03-26_1107.mp4 58.0 Mt
- tjlahton2012-03-26_1107.wmv 74.7 Mt
- tjlahton2012-03-26_1107.mp3 25.6 Mt
Aihe on erittäin laaja ja monimutkaisemmissa tilanteissa myös vaikea ja tarkemmin voi perehtyä katsomalla myös vanhat Windows Forms + tietokannat luennot : Luento 9 (2010), Luento 10 (2010) ja Luento 11 (2010) ja Heikki Heikkisen materiaali
Tietokantaa voi käsitellä myös perinteisimmällä ja ehkä kankeimmalla tavalla. Kts. luento10.cs (2010)
Lisätietoa
- ADO.NET Entity Framework Tutorial and Basics
- Introduction to the Entity Framework
- IQueryable Can Kill Your Dog, Steal Your Wife, Kill Your Will To Live, etc.
- Walkthrough: Creating an IQueryable LINQ Provider
- Walkthrough: Displaying Related Data in a WPF Application
- Walkthrough: Binding WPF Controls to an Entity Data Model
- How to: Add, Modify, and Delete Objects
- Walkthrough: Binding WPF Controls to a Dataset
- How to: Edit Rows in a DataTable
- How to: Locate a Specific Row in a DataTable
- How to: Delete Rows in a DataTable
- How to: Manage Data Concurrency in the Object Context
- How to: Add, Modify, and Delete Entities (WCF Data Services)
- Editing Data in Datasets
- Saving Data in Datasets
- TableAdapter Overview
- TableAdapterManager Overview
- WPF Datagrid Items Refresh
Käyttäjien kommentit