This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, I'm trying to load an item by ID, while including a particular named aggregate. The item is quite likely already loaded in the unit of work so ideally I want to:
FindById doesn't seem to support this, and if I use a query on ID it goes directly to the database each time. So my questions are:
Thanks |
|
|
Yes, you can use a Find(query) call, specify the named aggregate on the query and then set the Identifier property to the Id you want to load.
|
|
|
Perfect, thanks. |
|