System.InvalidOperationException: Could not convert document fea3fb67-a601-4838-9659-bbcbdd63b88d to entity of type MyEntityType --->
System.InvalidOperationException: Could not convert document dd6c6fb7-af73-4d01-862a-91d3061daad9 to entity of type MyEntityType --->
System.InvalidOperationException: Cannot add a data setter because on is already added
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
What are the features meant to handle this sort of requirement (objects that need to be referenced in multiple root graphs)? I would have thought this was safe because each trip through the loop, we create a new session. Semantically, this shouldn't be any different than a second client creating a session and reading documents.As with the read, is there a better way in RavenDB to load the "child" documents when I don't know what their IDs are until I start reading the parent?
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
The other thing I don't understand about the session, is why opening separate sessions breaks the original session. The code example intentionally opens a new session for each child. While I realize this seems inefficient (and may be ridiculous for RavenDB), but I'm not understanding why we can't have multiple open sessions on the same database without causing read issues. I'm new to Raven, so I must be missing something...
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
--
// Ryan
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
--
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
"A better way would be to have a reference id list and an object list property. Your unitbroker could populate the object list.I don't have the ability to add extra properties. Seems like having to keep 2 lists in sync with each other isn't a very desirable pattern. Any logic in the AddUnit() method would need to be duplicated in the AddUnitID(), and in fact not applicable. Outside the context of deserializing from the database, adding a Guid to the list of keys is not a valid operation because the ID would be meaningless. Likewise, having the AddUnitID() actually do something would require a dependency on the persistence frameworks in our otherwise unencumbered libraries...
--
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
That did it! Any idea why the Customize() didn't work? I think I saw that in another example for customizing queries. I had original used that example because in our "real" code, we aren't selecting by IDs, but using several properties instead.
--