PART 2. Start a New ASP.NET MVC Project
PART 3. Create New Database and Table for EF
PART 4.Install Entity Framework and Create Entity Data Model
PART 5. CRUD Operation using Entity Framework 6
If you haven't install Entity Framework yet, then you can install easily. Just read the following installing guide.
2. NuGet Package Manager Window will be open. Here, Browse for Entity Framework. Now, Click Install Icon or Install button to Installing it into your project.
3. A Review Changes Dialog box will appear. Click OK.
4. Accept License Agreement by clicking on I Accept button.
5. Now, you can see Entity Framework under References in Solution Explorer.
Create Entity Data Model
BookDataModeland click Add.
BookDetailsand click Finish.
BookDataModelin designer mode.
Congratulations! You have successfully created entity data model from new database. Now you will see that inserting, updating and deleting operation with a table is so much easy with the help of your BookDataModel.
Ctrl + Shift + Bin visual studio otherwise you will get error messages when adding scaffolding to the controller.
In this chapter, you learned Installing Entity Framework and Creating Entity Data Model. If you have successfully completed the steps till now then cheers because you are just a few steps ahead of your first CRUD operation with Entity Framework. Complete the next lesson and enjoy the victory over Entity Framework.