Create First Web API using ASP.NET CORE 6.0 | Entity Framework code first approach

preview_player
Показать описание
#entityframeworkcore #dotnetcore #entityframework #codefirst

This video explains how to Create First Web API using ASP.NET CORE 6.0 with Entity Framework code first approach & testing with swagger & Postman

Topics covered
=============
1, Create First Web API using ASP.NET CORE 6.0
2, Add Entity Framework using Code first approach
3, Testing with swagger & Postman

Source Code Link
===============

Steps need to follow
=================
1, Create Application
2, Install the below nugget packages
Microsoft.EntityFrameworkCore.Design
3, Create Model Class
4, Execute add-migration – It Creates a new migration class as per model
5, Execute update-database - It Executes the last migration file created
6, Testing with swagger & Postman
Рекомендации по теме
Комментарии
Автор

thank you so much bro. i was waiting for it. pls upload next video soon

VijayKumar-fqie
Автор

I will try Controller created to entity framework but I get the Error is
"There was an error running the selected code generator: 'Package restore failed. Rolling back package changes for 'ProdcutwebApi' " how to solve this error

AshokKumar-zje
Автор

After migrations creating category, how can I add category of new product by category id only, not the whole c "category": { ... }

dungdao
Автор

What changes need to do, when we use actual Sql server database instead of local ms database ?

abhranildas
Автор

getting some exception while adding controller

ratanmishra
Автор

i haven't seen Entity framework in my system ?

rajprajapati
Автор

update-database not working, Following error message showing :
Failed executing DbCommand (114ms) [Parameters=[], CommandType='Text', CommandTimeout='60']

abhranildas
Автор

Hi Nihar,

when i'm going to update-database got an error
A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)

can you help me to solve the above issue

MosinMulla-kb
Автор

I am getting error in using update-database command

Error Number:-2146893019, State:0, Class:20
A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)

sachinkumar-rkyg
Автор

How publish this api in azure VM? How do migration server

binumon
Автор

The repo says page not found, have you deleted it mr?

brookt