I like how cleanly the object is stored in ravenDB, but there is a practical question for which I am not sure about the best answer.
Suppose I have a quote request:
QuoteRequest.cs
int Id; dateTime DateCreated; List<Quotes> Quotes;
Quote.cs
int ProviderId; int Price; int ServiceDays; int ServiceTypeId;
when someone clicks on a page, I will remove from the list of quotes from which they can choose. These quotes are only associated with the quote request instance.
My question is, since a child, such as a quote in the list, does not have an identifier generated by the database, how can I create a request so that the next page knows which quote the user wants to buy?
There may be several quotes by one .dd supplier.
My thoughts were either to add QuoteId, or to add to it. Quotes.Count, but it seems a bit hacked or generates a random number, also a little hacked.
How do people generally cope with something like this?
source share