https://github.com/jorneycr/school-app-asp.net-core-mvc
ASP.NET Core 7 MVC
https://github.com/jorneycr/school-app-asp.net-core-mvc
asp-net-core entity-framework-core mvc-architecture v7
Last synced: 6 months ago
JSON representation
ASP.NET Core 7 MVC
- Host: GitHub
- URL: https://github.com/jorneycr/school-app-asp.net-core-mvc
- Owner: jorneycr
- Created: 2023-01-12T06:34:18.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-22T05:52:16.000Z (over 2 years ago)
- Last Synced: 2025-02-04T13:41:37.320Z (8 months ago)
- Topics: asp-net-core, entity-framework-core, mvc-architecture, v7
- Language: C#
- Homepage:
- Size: 2.04 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### SchoolManagementApp
## Create a dotnet project
# `dotnet new mvc -o SchoolManagementApp.MVC`
## Run project
# `dotnet run`
## Change of profile
# `dotnet run --launch-profile https`
## Watch
# `dotnet watch`
## Install Package
# `dotnet add package Microsoft.EntityFrameworkCore.SqlServer`
# `dotnet add package Microsoft.EntityFrameworkCore.Design`
# `dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design`
# `dotnet add package Auth0.AspNetCore.Authentication`## Install Tool
# `dotnet tool install --global dotnet-ef`
# ` dotnet tool install -g dotnet-aspnet-codegenerator`
## Generate scaffolded database with entity Framework its Context DB, and also generate the file Data
# ` dotnet ef dbcontext scaffold "Server=localhost, 1433;Database=SchoolManagementDb;Trusted_Connection=false;MultipleActiveResultSets=true;Encrypt=false;user id=sa;password=Password1234*" Microsoft.EntityFrameworkCore.SqlServer -o Data -f --no-onconfiguring`
## Generate controllers
# `dotnet aspnet-codegenerator controller -name CoursesController -m Course -dc SchoolManagementDbContext --relativeFolderPath Controllers --useDefaultLayout --referenceScriptLibraries -f`