Question: QUESTION BELOW THE LINE ON BOTTOM IN BOLD. PLEASE PROIVDE CODE. THANK YOU! Customer.cs public int CustomerId { get; set; } [Required] [StringLength(50)] public string

QUESTION BELOW THE LINE ON BOTTOM IN BOLD. PLEASE PROIVDE CODE. THANK YOU!

Customer.cs

public int CustomerId { get; set; } [Required] [StringLength(50)] public string CustomerFirstName { get; set; } [Required] [StringLength(50)] public string CustomerLastName { get; set; } [Required] [Phone] public string Phone { get; set; } [Required] public string Address { get; set; }

public ICollection Dogs { get; set; }

DogInfo.cs

public int DogInfoId { get; set; } [Required] public string DogName { get; set; } [Required] public string Breed { get; set; } [Required] public int Age { get; set; }

public int OwnerId { get; set; } public Customer customer { get; set; } public ICollection WalkInfos { get; set; }

Employee.cs

public string EmployeeId { get; set; } [Required] public string EmployeeFirstName { get; set; } [Required] public string EmployeeLastName { get; set; }

public ICollection Walks { get; set; }

WalkInfo.cs

public int WalkInfoId { get; set; } public int Distance { get; set; } public string Notes { get; set; }

public int EmployeeId { get; set; }

public Employee Employee { get; set; }

public int DogInfoId { get; set; } public DogInfo DogInfo { get; set; }

---------------------------------------------------------------------------------------------

I'm having having troubles with my database diagram. DogInfos and Customers are connected and Employees and WalkInfos are connected but how do I get the two sides to connect to make one cohesive database?

Explanation on the general scope of the project.

Project must have at least 3 Related Model Classes and have full CRUD (Create, Read, Update, Delete Functionality) for those classes.

Demonstrate CRUD on each of these classes. Simulate deletion by setting customers enrolled bool to false instead of deleting a customers record from a database.

Project must have the ability for users to log in to use the application with at least one endpoint locked behind authentication.

You may choose any endpoint.

The UI must be customized.

The customization does not need to be extensive.

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!