ASP.NET Core 6.0 Code first approach using Entity Framework

preview_player
Показать описание
This is how code first approach is done using entity framework, to generate the database and the respective tables

Timestamps:
---------------------
0:00- Introduction
0:12- Creating the Web API project
0:50- Explaining the models involved
1:31- Creating the Models
3:10- Adding the foreign key and navigation properties
5:28- What are navigation properties ?
6:38- Allowing Lazy Loading by adding virtual key word
7:00- Downloading the required Entity Framework packages
8:00- Creating the DbContext class
13:20- Creating the migrations
14:20- Analyzing the created Databasein MSSMS, and its tables with the relationships
15:50- How to handle future Model changes?
17:30- Outro
Рекомендации по теме
Комментарии
Автор

This a very good tutorial on EF Core, Code First approach and I like the fact that you clearly explaining the One-to-Many relationships among the tables.

jamesbienaime
Автор

Excellent, this is very useful for me since I'm doing the same thing at the university. Straight to the point, no BS!

djokasvinjar
Автор

Love the videos keep up the good work! Can’t wait to see more. I remember meeting you in siege.👍👍

Pappelkiv
Автор

Good explanation! Could you make a video on how to access data through foreign keys in views

anniepauline
Автор

add-migration dataAccess

he running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The term 'dotnet' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
PM>
help please

abdo__
Автор

Would you please create Video to know how create reports

sagittariuseg
Автор

Very good tutorial. everything worked as said.
I had issue during update-database.
(0x80131904): 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.)

Solved it for my desktop configuration as below:
"MyConnection": "Data Catalog=mydatabase;Integrated

This part of connection string helped me update database and create new tables in the database.

abhijitmandrekar