A work in progress project for a system represents a fan site for Varsity Sports.
- Showing Support on Users View
- Clone Codebase
- Right Click Project > View Project in File Explorer > Create Folder "App_Data"
- Tools > Nuget Package Manager > Package Manager Console
- enable-migrations
- add-migration {migration_name}
- update-database
- update portnumber in PlayerController.cs, TeamController.cs, SponsorController.cs
- Register two Users through the App
- View > SQL Server Object Explorer
- Create two roles "Admin" and "Fan" in AspNetRoles
- Navigate to AspNetUsers, grab both ids (strings) of the accounts created
- Navigate to AspNetUserRoles
- Insert an association between one User and the Admin Role (userid, roleid)
- Insert an association between one User and the Fan Role (userid, roleid)
- One user should be able to CRUD on all entities as Administrator (full access)
- The other user should be able to Create and Delete their messages of Support (partial access)
- Non-logged in user can read information (read access)
- Right click solution > Clean
- Right click solution > Build
- Right click solution > Rebuild
- Create "App_Data" Folder in project
- Right click "References"
- Add System.Web.Extensions
- Update the port number to the current port your local project is using
- update portnumber defined in PlayerController.cs, TeamController.cs, SponsorController.cs
- Add a team first, each player must play for a team
References