ADO dot net example
Demonstrates how to do ADO DOT NET using the old method before ORMs
- How to connect your database to a console application.
- What an ORM is.
- The basics of networking
- Know what OS they are using
- VSCode installed
- Postgres installed
- dotnet core installed
Create a new directory for the project
mkdir adotimetravel
Then change to that directory
cd adotimetravel
Create a new console app
dotnet new console
The following adds
dotnet add package Npgsql
Show exceptions and how to create them
explain localhost and that 127.0.0.1 is the same as local host
Windows
ipconfig
On linux OS
ifconfig
Your default gateway will be how to get to the internet. It will be the address of your local router.
By typing this address into the address bar you will be able to access the administrator settings of your local router.
Whenever anyone in the world wants to get connected to the internet they need what is called a unique IP (Internet Protocol) address to get them there.
ipconfig /all
Ping loopback address
ping 127.0.0.1
Ping your default gateway. N.B. * are not correct and will be replaced by your default gateway as listed after ifconfig.
ping 198.168.*.*