0% found this document useful (0 votes)
5 views2 pages

Install Entity Framework Core Guide

The document provides a step-by-step guide for installing Entity Framework Core and setting up a database context in a web application. It includes instructions for creating necessary folders and classes, managing NuGet packages, and executing commands for database migration. Additionally, it outlines the process for adding CRUD operations and views for a student model.

Uploaded by

ASK 011
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

Install Entity Framework Core Guide

The document provides a step-by-step guide for installing Entity Framework Core and setting up a database context in a web application. It includes instructions for creating necessary folders and classes, managing NuGet packages, and executing commands for database migration. Additionally, it outlines the process for adding CRUD operations and views for a student model.

Uploaded by

ASK 011
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Install entity framework core

Right click on dependencies-> manage newget packages ->browse and install 2 pakages
[Link]
[Link] (responsible for data migration create table)

[Link]-> create new folder ->Data->add class ->[Link]


Shortcuts : ctor+tab

Model->create new folder>Entities->add class->[Link]


Shortcuts prop + double tab

[Link]

[Link]
Tools->nueget package manager ->package manager console (execuate 2 commands) to create db and table
Hya command chy adahi varche codes complete paije eg initialization
Add-Migration "Initial Migration"
Update-database

Crud operation time

Shortcut : ctrl+.
Right click on controller and add controller [Link] ->right click on view and add view [Link]

right click on modle-> add class [Link]

You might also like