English
Topic 7. ADO.NET database access: relational database and SQL fundamentals
Goal: become familiar with the relational data model, the PostgreSQL DBMS, and the psql and DataGrip tools; learn to design a normalized database schema, create tables with constraints, and write SQL queries with joins and grouping; master database access from C# through ADO.NET and Npgsql: parameterized commands, reading results, transactions, and displaying data in a DataGridView.
Lecture contents
- The relational model and PostgreSQL — Databases and the relational model · Database design · The PostgreSQL DBMS and tools
- SQL: tables and queries — Creating tables: DDL · Modifying and querying data
- ADO.NET architecture and commands — ADO.NET architecture · Executing commands
- Parameters, transactions, and DataGridView — SQL injection and parameterized queries · Transactions · Disconnected mode and DataGridView
- Common mistakes — Common mistakes