Question: CP 3 8 0 : Project 1 Razor Pages Task: Use Razor Pages and ASP.NET Core 8 . 0 to create a simple blog website.

CP380: Project 1 Razor Pages
Task:
Use Razor Pages and ASP.NET Core 8.0 to create a simple blog website. The application should have three data models: Post, Author, and Tag. The Post model should have a Title, PostText, and DatePublished properties. The Author model should have AuthorName and DateOfBirth properties. The Tag model should have a TagName property. Any primary/foreign keys and navigation properties that are required should also be in the data models.
The data models are related as follows: A Post is a single article on the blog, it will have one Author, and zero to many Tags. An Author will have zero to many Posts. A Tag can belong to zero to many Posts. Tags to Posts is a many-to-many relationship. For help with configuring the data model relationships, see the weekly links for "Week 9.
Use Entity Framework and the code first Migration tool to setup the database schema, as we have done in class. The application should have Create, Details, Edit, Delete, and Index (List) pages for each of the data models. Use the Code Generation tool to make this easier.
Some of the generated pages will have to be edited. The Create Post page should allow the user to choose the Author and add Tags to the post. The Author Details page should list all of the Posts that the Author is associated with. The Posts Index page should include an option to search a post by its title.
The Index (homepage) of the application should have links to the Author, Post, and Tag Index pages. Try to use some of the Bootstrap CSS classes on your homepage.
Your CRUD pages should make use of client-side data validation. Use annotations on the data models to enforce validation rules. Make sure all fields required, and that DateOfBirth and DatePublished properties are Date only. Use some custom error messages in your data validation as well
You will be graded on how well the application works, by meeting all of the requirements listed above, and by overall presentation of the application's UI and code.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!