Dependancies
VS 2022
SQL Server
SSMS
VS Code
VS 2022
SQL Server
SSMS
VS Code
dotnet new mvc -o MvcLightweight
Separate Folders-
Like-
dotnet new webapp -o RazorPagesExtremely Lightweight
Single Folder-
Like-
dotnet new mvc -o MVCwebAppcode -r MVCwebApp
dotnet new mvc -o MVCwebAppdotnet tool uninstall --global dotnet-aspnet-codegeneratordotnet tool install --global dotnet-aspnet-codegeneratordotnet tool uninstall --global dotnet-ef
dotnet tool install --global dotnet-ef
dotnet add package Microsoft.EntityFrameworkCore.Design
dotnet add package Microsoft.EntityFrameworkCore.SQLite
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design
dotnet add package Microsoft.EntityFrameworkCore.SqlServer
dotnet-aspnet-codegenerator controller
-name MoviesController
-m Movie
-dc MvcMovieContext
--relativeFolderPath Controllers
--useDefaultLayout
--referenceScriptLibraries
-sqlite
Program.cs
dotnet tool install --global dotnet-ef
dotnet ef migrations add InitialCreatedotnet ef database update