How to Use .Net Entity Framework to Connect PostgreSQL Server in a C# Application

  Рет қаралды 5,527

CodeZen

CodeZen

Күн бұрын

In this video,
How to setup Entity Framework DB First to connect PostgreSQL server on Ubuntu virtual machine.
How to connect PostgreSQL from pgAdmin windows application to check connection and database.
How to use PostgreSQL entity framework database context in a c# console application.
How to make CRUD "Create,Read,Update,Delete" operations on PostgreSQL database with .Net Core EntityFramework DB Context.
How to create a very basic c# web api controller for crud operations on postgresql
Related Links
----------------------
• How to Install Postgre...
www.npgsql.org...
Reminders
------------------
Npgsql.EntityFrameworkCore.PostgreSQL" Version="5.0.10"
Microsoft.EntityFrameworkCore.Design
Microsoft.EntityFrameworkCore.Tools
dotnet --version
dotnet tool install --global dotnet-ef
dotnet ef dbcontext scaffold "Host=127.0.0.1;Port=5432;Database=testdb;Username=admin;Password=admin" Npgsql.EntityFrameworkCore.PostgreSQL -o Models
-f Force - To Reflect Changes to code after making changes on database
dotnet ef dbcontext scaffold "Host=127.0.0.1;Port=5432;Database=testdb;Username=admin;Password=admin" Npgsql.EntityFrameworkCore.PostgreSQL -o Models -f

Пікірлер: 5
In Depth Entity Framework Migrations with Postgres
26:51
ScriptBytes
Рет қаралды 10 М.
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 89 МЛН
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 33 МЛН
.NET Framework vs .NET Core vs .NET vs .NET Standard vs C#
25:14
IAmTimCorey
Рет қаралды 557 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 211 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 199 М.
How to Deploy .Net Core Web Application to Ubuntu Linux
38:09
Why is Kubernetes Popular | What is Kubernetes?
9:52
ByteByteGo
Рет қаралды 29 М.