Specifications •There should be a Destination entity that has a one-to-many relationship with the Trip entity. That is, a trip can only have one destination, but a destination can be associated with...

Specifications •There should be a Destination entity that has a one-to-many relationship with the Trip entity. That is, a trip can only have one destination, but a destination can be associated with more than one trip. The foreign key in the Trip entity should be configured so that attempting to delete a destination that’s associated with a trip throws an error. • There should be an Accommodation entity that has a one-to-many relationship with the Trip entity. That is, a trip can only have one accommodation, but an accommodation can be associated with more than one trip. The foreign key in the Trip entity should be configured so that when you delete an accommodation that’s associated with a trip, the app sets the accommodation for that trip to null. • There should be an Activity entity that has a many-to-many relationship with the Trip entity. That is, a trip can have more than one activity, and an activity can be associated with more than one trip. • Use Entity Framework (EF) Code First and migrations to create a new database named TripLog2 that maps to these entities. • Make sure to encapsulate your EF Core code in its own data layer. • Update the Trips page so it allows users to delete a trip. • Update the New Trip page so it allows users to select the destination and accommodation from dropdowns, rather than entering them in text boxes. • Update the Activities page so the user can select one or more activities from a element that allows multiple selections. • Add a Manager page that provides a way for users to add and delete destinations, accommodations, and activities. • Provide a way to access the Manager page from the Add Trip page.
Mar 31, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here