Setup the DbContext Class and Database Connection String | ASP.NET Core 5.0 Web API Tutorial

preview_player
Показать описание
Asp.Net Core Web API 5.0 Tutorial

===================================
===================================

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Follow us on
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Popular free courses from WebGentle
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Рекомендации по теме
Комментарии
Автор

Data folder's Book class and Model Folder's BookModel are same but why should we use this two class? Can you please explain which one is used for what?

shahriarshuvo
Автор

You should assign the connection string in the Startup class, not the db context class itself.

Like this

=>

This way when you mock for unit testing or do something cool, you don't need to override or stub the connection string within the class

nickturner
Автор

Sir please zoom your screen for better visibility

rajkumarchawla
Автор

Startup Class is not the Application bro, now a days

snehijob