How to Connect to PostgreSQL with EF Core: A Step-by-Step Guide

Опубликовано: 22 Март 2026
на канале: Tech With Pat
60,112
926

How to connect to a PostgreSQL using Entity Framework Core.

Have you ever wanted to connect your ASP.NET MVC website to a relational database like PostgreSQL? This tutorial will guide you step-by-step through the process of getting your site set up so it can talk to a PostgreSQL database!

Subscribe: https://www.youtube.com/c/TechWithPat...

Source Code: https://github.com/techwithpat/MovieApp

🕑Timestamps :
00:00 Introduction
01:14 Creating the web project
01:59 Adding the connection string to PostgreSQL
02:54 Creating the Data Access Layer
04:05 Creating a Model
07:24 Creating the database with Migrations
08:48 Querying data
11:26 Data seeding
13:51 Conclusion

Where you can find me:
💻 Github: https://github.com/techwithpat
🌐 Website: https://www.techwithpat.com
🕴️ LinkedIn:   / patrick-tshibanda-431017135  

#entityframeworkcore #postgresql