- Fork this repo
- Clone down to local computer
- Run the program and in the web browser manually change the URL to
localhost:9999/courses - Test out CRUD
- For a example look back at our pizza project or this
- Add at least 5 courses
- Make sure to test the script by deleting all the courses
- You can delete the courses by using DB tool or using Web UI
- Add Display names to any field with two words
- Ex
CourseNameshould becomeCourse Namein the views
- Ex
- To change the display name use a [Display] attribute.
- Update the Nav bar so you can navigate to the CRUD of courses.
- Link will be
/Courses/Index
- Link will be
- Add
EndTimeproperty to theCourse.csmodel - Added
EndTimeto all the views Creat, Delete, Details- In the
indexmake sure you display theEndTime
- In the
- Do a migration to update the database
- Update seeding script to include new field
- To be done in NuGet or using Plugin or in .NET CLI
Using NuGet
Add-Migration EndTime
Update-DatabaseUsing .NET CLI (easiest way)
dotnet ef migrations add EndTime
dotnet ef database update