ASP.NET Core Web API + Entity Framework Core : Database First – EP01



ASP.NET Core Web API + Entity Framework Core : Database First – EP01

ASP.NET Core Web API + Entity Framework Core : Database First - EP01

Hey Coders,

Subscribe here – https://www.youtube.com/channel/UCetyodKOWGk5H6FoKoFnkZw
Talk to us on – https://www.twitch.tv/curiousdrive

Like our page – https://www.facebook.com/curiousdrive/
Follow us on – https://twitter.com/curious_drive
Follow us on – https://www.instagram.com/curiousdrive/

Make a donation – https://www.paypal.me/curiousdrive
Be a member – https://www.patreon.com/curiousdrive

Find Code here – https://github.com/CuriousDrive/BookStores

You can download SQL express from. Please find the link below.
https://go.microsoft.com/fwlink/?linkid=866658
And you can follow these steps if you are using Ubuntu –
https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-ver15

In this #EntityFramework tutorial, I am explaining how you can connect to your SQL express database and how you can run Entity Framework Core tool to scaffold the database. It’s also known as #DatabaseFirst approach.

Content –
1. What’s Database First?
2. Creating ASP.NETCore #WebAPI
3. Running command Scaffold-DbContext
4. Generating DBContext and Models
5. Performing CRUD Operations

Scaffolding Command –
Scaffold-DbContext “Server=.SQLExpress;Database=BookStoresDB;Trusted_Connection=True;” Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models

#CuriousDrive #WeLoveCoding

Comments are closed.