Spiritfarer
❔ How can I add multiple services to my quotations?
hiii, I am relatively new to ASP.NET and I have come across this question while working on an assignment, as I need to add multiple services to the same quotation. (I forgot to mention that I am using CodeFirst due to assignment requirements)
However, I'm unsure how to proceed. While researching, I realized that I could add an intermediate table between quotations and services to store all the quoted services.
The problem is that I don't fully understand how this would work. If I want to add a quotation ID that doesn't exist in the intermediate table, would it give me an error since it conflicts? I mean, it doesn't exist because the quotation hasn't been created as such yet, right? So, I'm not sure how to make this work, and I'm confused about the topic.
Additionally, the assignment specifically requires the use of "ASP.NET MVC" implementing the Onion architecture, which is adding to my confusion. I would appreciate any insights on how to achieve this. Thank you in advance for taking the time to read the question.
14 replies