Entity Framework Code First ASP.Net - C#

preview_player
Показать описание
This video will show you how to setup entity framework using code first approach in ASP.net by using C#.

What you will learn.
1 - Set Up Entity Framework on Visual Studios
2- Code First Approach Entity Framework 6.0
3 - Create Code First objects in c#
4 - Create database and objects by using code first approach.
5- Update code objects and push changes to database.

Chapters:
00:00 Set up Entity Framework
08:16 Add Tables to Database using Code First Approach (Coding)
14:27 Query data from Database using Entity Framework
16:29 Update Tables and classes.

Code:

#entityframework #visualstudios
Рекомендации по теме
Комментарии
Автор

I am stuck around the 9 minute mark. Was getting connection string syntax issues but I fixed them with an escape character. But no tables are being made when I run. Also If I do breakpoint at the connection string, it gets stuck and won't let me continue through it. So I have to stop running it. Your connection string is localhost mine is localdb. Sorry if bad question, bootcamp grad trying to build a web app for a job interview challenge due in a couple of days.

danielalvarez
Автор

good job, but please tell me, Does the same code work on Visual Studio Code?

thewayne
Автор

font very small, I could not see what you are typing and explanation

arunbm
Автор

Entity Framework is totally removed from our system, it's just too messy and difficult to maintain for all developers. It could work in a very small system but not the enterprise level! Not sure what Microsoft was thinking when they implemented this!

CAPS_AMERICA