ddd

DDD - Consistency of Entity Across Bounded Context & Different Schemas in Database

匿名 (未验证) 提交于 2019-12-03 03:10:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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

Should DDD entities compare by reference or by ID?

匿名 (未验证) 提交于 2019-12-03 03:02:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I started using DDD, I created Equals() methods in my entities that compared the ID of the entity. So two entity objects with the same ID would be considered equal. At some point I thought about that and found that two entities in different states should not be considered equal, even when they describe the same thing (i.e. have the same ID). So now I use reference equality for my entities. I then stumbled over this answer by Mark Seemann, where he writes Entities are equal if their IDs equal each other. Now, of course, I'd like to know

DDD: refer to an entity inside an aggregate root by its identity

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm stuck on finding the proper way to refer to entities located inside an aggregate root , when we only got their identities coming from URL parameters. I asked a previous question which ended up focused on value objects , so I'm starting with another example here. Let's say we want to modify an OrderLine inside an Order : The user goes to a page where he can see the Order summary along with all its Order Lines. The user clicks on the edit button next to an Order Line. He gets directed to edit-order-line?orderId=x&orderLineId=y Now if I

Do DDD and SOA really play well together?

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Please let me know, ever so gently, if I am totally mangling the DDD concept, but here is my dilemma. Let's say I have the following domain model: Teacher IList<Class> Class Teacher IList<Student> Student Class Now, from a DDD perspective, it seems like the Teacher is my root, and indeed, in a simple app, I might carry around my Teacher with her classes and students and act on them as needed. But in an SOA situation, let's say I've pulled down my Teacher, her classes and students for display purposes (as dtos), and she wants to add a student

Good Domain Driven Design samples [closed]

匿名 (未验证) 提交于 2019-12-03 01:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm learning about Domain Driven Design and enjoying every minute of it. However, there are some practical issues that are confusing to me that I think seeing some good samples might clear up. So being at peace with those issues, does anyone know of some good working code samples that do a good job of modeling basic DDD concepts? Particularly interested in An illustrative Domain Model Repositories Use of Domain/Application Services Value Objects Aggregate Roots I know I'm probably asking for too much, but anything close will help. 回答1: The

DDD: Should a Dto Assembler be a part of Domain Layer?

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Thanks in advance. I have some Aggregates in the Domain Layer library. Also, some DTO s in a separate library, which is shared between Server and Client side. An Aggregate of an entity is more informative than its DTO . So, in order to convert from DTO to Aggregate , a repository should be accessed by a Dto Assembler . Interfaces of repositories are in Domain Layer . That's why i come to conclusion that DtoAssembler should be a part of DomainLayer . Is this right? 回答1: No, this would be plain wrong in the context of DDD. Try asking a (non

DDD. Shared kernel? Or pure event-driven microservices?

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm breaking my system into (at least) two bounded-contexts: study-design and survey-planning. There's a concept named "subject" (potential subject for interviewing) in the study-design context. We also maintain associations between subjects and populations in that domain. Now, in the survey-planning, we also need (some) information about the subject (for example: for planning a visit, or even for anticipated selection of questionnaire, in case the population the subject belongs to is known beforehand). So, I need that "subject" in both

DDD: Where to keep domain Interfaces, the Infrastructure?

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Does it make sense to group all Interfaces of your Domain Layer (Modules, Models, Entities, Domain Services, etc) all within the Infrastructure layer? If not, does it make sense to create a "shared" project/component that groups all of these into a shared library? After all, the definition of "Infrastructure Layer" includes "shared libraries for Domain, Application, and UI layers". I am thinking of designing my codebase around the DDD layers: UI, Application, Domain, Infrastructure. This would create 4 projects respectfully. My

.NET领域驱动开发(DDD)框架搭建

匿名 (未验证) 提交于 2019-12-03 00:39:02
详细内容讲解: https://study.163.com/course/introduction/1005643030.htm?share=1&shareId=1142344671 内容:一步一步搭建一个实用的基于领域驱动设计(DDD)开发模式的一个项目开发框架。通过结合实际的代码应用让大家对领域驱动开发有一个更好的理解。 源码:https://github.com/lidingbin/MicBeach.Framework 文章来源: .NET领域驱动开发(DDD)框架搭建

ddd

匿名 (未验证) 提交于 2019-12-03 00:26:01
以上在loader.py中,返回的blob是个字典的形式 http://blog.csdn.net/u013548568/article/details/79430512 也即产生了各类信息和标签形式 转到FPN中进入该函数找到model.GenerateProposals(),再转到detector.py里面可以找到model.GenerateProposals,再次转到 self .net .Python ( GenerateProposalsOp(anchors, spatial_scale, self .train ) .forward )(blobs_in, blobs_out, name=name, spatial_scale=spatial_scale) 1 2 3 最后在rpn_heads.py里面model.CollectAndDistributeFpnRpnProposals() blobs_ in = [core.ScopedBlobReference(b) for b in blobs_ in ] blobs_out = [core.ScopedBlobReference(b) for b in blobs_out] 1 2 这两句话就将blob加入到workspace里面,方便之后的程序进行识别,blob