DDD - Consistency of Entity Across Bounded Context & Different Schemas in Database
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am implementing DDD with Entity Framework Code First. My Domain Model is persisted as it is without any mapping layer. I am following approach suggested during Tech-Ed by Julie Lerman. Each bounded context maps to different schema within same database. If same entity say, Customer appears across different bounded contexts how do we maintain consistency of data for Customer entity? 回答1: Only a single bounded context will be the system of record for your entity. If you cannot get away with simply an Id in the other BCs then you can include a