Professional Documents
Culture Documents
Xhelal Jashari
xhelal.jashari@ubt-uni.net
Web Programming
Understanding of Model
ASP.NET Core Web Application Web Programming
Solution Explorer
Solution name
Project
Other files under project
Models
Understanding of Model Web Programming
Understanding of Model Web Programming
• The model class does not handle directly input from the
browser.
• A controller interacts with the model, access the data, perform the
logic and pass that data to the view.
• Creating a Model
To add the model, just right click on
the Model folder of the project and
then follow this:
Understanding of Model Web Programming
DbContext
• Application DbContext
• ConfigureServices
Understanding of Model Web Programming
• ConfigureServices
Understanding of Model Web Programming
• Student Create
Understanding of Model Web Programming
• Student Delete
Understanding of Model Web Programming
• Student Details
Understanding of Model Web Programming
• Student Edit
Understanding of Model Web Programming
• Student Index
Web Programming
NuGet Package Manager Web Programming
• NuGet
Package Manager
NuGet Package Manager Web Programming
Source: https://docs.microsoft.com/en-us/aspnet/core/mvc/views/view-compilation?view=aspnetcore-6.0&tabs=visual-studio
NuGet Package Manager Web Programming
For example:
NuGet Package Manager Web Programming
• Add-Migration
• Drop-Database
• Get-DbContext
• Scaffold-DbContext
• Script-Migrations
• Update-Database
ConnectionStrings Web Programming
ConnectionString Examples