c# - Aggregate root refferences another aggregate root by ID, how to maintain integrity using RavenDB? -


say have x aggregate root, , y aggregate root. using nosql document database, x holds reference y y's id. if y deleted (independently outside of x's context), x holds reference y not exist.

what proposed solution eliminate or solve problem in ddd?

a delete operation should have business meaning. example, because deleted product inventory collection, not mean should deleted users invoices.

if there real need delete. can define index in ravendb , update entities containing aggregate root id.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -